[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
@@ -153,8 +153,8 @@ const computedIds = (data) => {
const getList = () => {
loading.value = true;
api.listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
roleList.value = res.rows;
total.value = res.total;
roleList.value = res.data?.rows;
total.value = res.data?.total;
loading.value = false;
});
};
+2 -2
View File
@@ -218,8 +218,8 @@ const getList = async () => {
queryParams.value.userIds = prop.userIds;
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;
};
const pageList = async () => {