Skip to content

Commit

Permalink
fix: table Maximum call stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Apr 14, 2019
1 parent f9b3756 commit 562ef5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
this.localPagination.pageSize
})
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
if (r.data.length === 0 && this.localPagination.current !== 1) {
if (r.data.length === 0 && this.localPagination.current > 1) {
this.localPagination.current--
this.loadData()
return
Expand Down

0 comments on commit 562ef5c

Please sign in to comment.