This commit is contained in:
仲么了
2024-01-03 14:23:49 +08:00
parent fb0ce06146
commit 2bb7a82778
2 changed files with 6 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export default class TableStore {
}
index() {
this.table.data = []
this.table.loading = true
// 重置用的数据数据
if (!this.initData) {
@@ -124,7 +125,10 @@ export default class TableStore {
() => {
this.table.params.pageNum = data.page
if (this.isWebPaging) {
this.table.data = this.table.webPagingData[data.page - 1]
this.table.data = []
requestAnimationFrame(() => {
this.table.data = this.table.webPagingData[data.page - 1]
})
} else {
this.index()
}