fix: repair admin page api contracts

This commit is contained in:
2026-09-10 21:31:38 +08:00
parent 7994e081a6
commit d6f5f25c35
30 changed files with 286 additions and 110 deletions
@@ -90,8 +90,8 @@ async function loadData() {
page: page.value,
pageSize: pageSize.value
}, { Authorization: `Bearer ${token}` })
tableData.value = res.list || []
total.value = res.total || 0
tableData.value = res.data?.list || []
total.value = res.data?.total || 0
} catch (e) { console.error(e) }
finally { loading.value = false }
}