生成多条数据修改

This commit is contained in:
caoyang
2022-05-06 10:53:35 +08:00
parent 86fbea56ca
commit 3fd7a79bbd
2 changed files with 8 additions and 1 deletions
@@ -189,6 +189,11 @@
this.loading = true
postAction(this.url.tableList, params).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = res.result.current - 1
this.getTableList()
return
}
this.dataSource = res.result.records
this.total = res.result.total
this.loading = false