fix: SMF UE在线信息固定翻页50条

This commit is contained in:
TsMask
2024-06-27 17:10:30 +08:00
parent cd4073bec3
commit 3829d339e7
2 changed files with 10 additions and 14 deletions

View File

@@ -21,14 +21,14 @@ export async function listUEInfoBySMF(query: Record<string, any>) {
msg: result.msg,
};
// 解析数据
if (result.code === RESULT_CODE_SUCCESS && Array.isArray(result.data.data)) {
const rows = parseObjLineToHump(result.data.data);
data.total = rows.length;
data.rows = rows;
if (result.code === RESULT_CODE_SUCCESS && Array.isArray(result.rows)) {
data.total = result.total;
data.rows = result.rows;
}
// 模拟数据
// data.code = RESULT_CODE_SUCCESS;
// data.total = 2;
// data.rows = [
// {
// imsi: 'imsi-460000100000090',