修改问题

This commit is contained in:
duan
2025-02-25 15:10:11 +08:00
parent 0c5e5798ea
commit a56aabb05a
14 changed files with 271 additions and 150 deletions

View File

@@ -79,18 +79,22 @@
}
if (datas.tabIndex == 1) {
if (datas.page == 1) {
datas.list = []
datas.list = res.records;
} else {
if (res.records.length) {
datas.list.push(...datas.list, res.records)
let arr = datas.list.concat(res.records)
datas.list = arr
}
}
} else {
if (datas.page == 1) {
datas.list = []
datas.list = res.list;
} else {
if (res.records.length) {
datas.list.push(...datas.list, res.list)
let arr = datas.list.concat(res.records)
datas.list = arr
}
}
// datas.total = res.page.totalCount;