[mod]适配分页返回数据放入data中返回

This commit is contained in:
Carrierli
2026-03-17 16:18:12 +08:00
parent d97c93cc98
commit 82d28a3188
49 changed files with 121 additions and 94 deletions
+2 -2
View File
@@ -455,8 +455,8 @@ const getList = async () => {
loading.value = true;
const res = await api.listUser(proxy?.addDateRange(queryParams.value, dateRange.value));
loading.value = false;
userList.value = res.rows;
total.value = res.total;
userList.value = res.data?.rows;
total.value = res.data?.total;
};
/** 查询部门下拉树结构 */
+1 -1
View File
@@ -133,7 +133,7 @@ const getAuths = async () => {
};
const getOnlines = async () => {
const res = await getOnline();
state.value.devices = res.rows;
state.value.devices = res.data?.rows;
};
onMounted(() => {