更新功能

This commit is contained in:
2026-02-10 22:36:05 +08:00
parent 2248d51887
commit 1969669f0b
32 changed files with 3497 additions and 4701 deletions
+2 -2
View File
@@ -125,10 +125,10 @@ export function useTable(options = {}) {
// 调用API函数,确保this上下文正确
const res = await api(requestParams)
if (res.code === 1) {
if (res.code === 200) {
// 如果是分页数据
if (needPagination) {
tableData.value = res.data?.data || []
tableData.value = res.data?.list || []
pagination.total = res.data?.total || 0
} else {
// 非分页数据(如树形数据)