We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9b3756 commit 562ef5cCopy full SHA for 562ef5c
src/components/Table/index.js
@@ -145,7 +145,7 @@ export default {
145
this.localPagination.pageSize
146
})
147
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
148
- if (r.data.length === 0 && this.localPagination.current !== 1) {
+ if (r.data.length === 0 && this.localPagination.current > 1) {
149
this.localPagination.current--
150
this.loadData()
151
return
0 commit comments