Browse Source

fix: table Maximum call stack size

Sendya 6 years ago
parent
commit
562ef5cd5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Table/index.js

+ 1 - 1
src/components/Table/index.js

@@ -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