refactor: 分页响应数据结构调整

This commit is contained in:
Ray.Hao
2026-02-12 21:01:48 +08:00
parent c09ce3e4a8
commit 9480b426dc
45 changed files with 1013 additions and 1026 deletions

View File

@@ -199,9 +199,9 @@ const computedRules = computed(() => {
function fetchData() {
loading.value = true;
DictAPI.getDictItemPage(dictCode.value, queryParams)
.then((res) => {
tableData.value = res.data;
total.value = res.page?.total ?? 0;
.then((data) => {
tableData.value = data.list;
total.value = data.total ?? 0;
})
.finally(() => {
loading.value = false;