Skip to content

Commit 562ef5c

Browse files
committed
fix: table Maximum call stack size
1 parent f9b3756 commit 562ef5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/Table/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default {
145145
this.localPagination.pageSize
146146
})
147147
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
148-
if (r.data.length === 0 && this.localPagination.current !== 1) {
148+
if (r.data.length === 0 && this.localPagination.current > 1) {
149149
this.localPagination.current--
150150
this.loadData()
151151
return

0 commit comments

Comments
 (0)