From 6a7dddfbcdcc1872af8a4f0055db75001c6f17d5 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 30 Sep 2021 15:59:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(unicloud-db):=20=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=20=E4=BF=AE=E6=94=B9page-size=E5=90=8E?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=86=85=E9=83=A8=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-cli-shared/components/unicloud-db.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/uni-cli-shared/components/unicloud-db.vue b/packages/uni-cli-shared/components/unicloud-db.vue index c65d802ea..288b3d7ab 100644 --- a/packages/uni-cli-shared/components/unicloud-db.vue +++ b/packages/uni-cli-shared/components/unicloud-db.vue @@ -178,12 +178,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]) { @@ -195,9 +197,6 @@ export default { this.clear() this.reset() } - if (newValue[0] !== oldValue[0]) { - this.paginationInternal.current = this.pageCurrent - } this._execLoadData() }) -- GitLab