浏览代码

Fixed infinite loop error with wrong server side pagination metadata

zhixin 4 年之前
父节点
当前提交
c0b1e897b5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -1943,6 +1943,7 @@ class BootstrapTable {
 
         if (
           this.options.sidePagination === 'server' &&
+          this.options.pageNumber > 1 &&
           res[this.options.totalField] > 0 &&
           !res[this.options.dataField].length
         ) {