diff --git a/packages/uni-components/lib/unicloud-db/unicloud-db.vue b/packages/uni-components/lib/unicloud-db/unicloud-db.vue index aa05712faa9d761eb67bc7565d337ad25a105907..f541debfcdeaf6c684a8bfa77bddcc4608d6f683 100644 --- a/packages/uni-components/lib/unicloud-db/unicloud-db.vue +++ b/packages/uni-components/lib/unicloud-db/unicloud-db.vue @@ -207,12 +207,14 @@ export default { }) return al }, (newValue, oldValue) => { + this.paginationInternal.size = this.pageSize + if (newValue[0] !== oldValue[0]) { + this.paginationInternal.current = this.pageCurrent + } if (this.loadtime === loadMode.manual) { return } - this.paginationInternal.size = this.pageSize - let needReset = false for (let i = 2; i < newValue.length; i++) { if (newValue[i] !== oldValue[i]) { @@ -224,9 +226,6 @@ export default { this.clear() this.reset() } - if (newValue[0] !== oldValue[0]) { - this.paginationInternal.current = this.pageCurrent - } this._execLoadData() })