From 6ec48192afce7796d33822bf545d956170d49543 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 17 Nov 2023 16:27:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=98=8E=E7=BB=86=E8=A1=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E7=94=B1=E5=B0=8F=E5=8F=98=E5=A4=A7=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/customComponent/UserView.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue index 37965f1b64..ff7d0aa98a 100644 --- a/core/frontend/src/components/canvas/customComponent/UserView.vue +++ b/core/frontend/src/components/canvas/customComponent/UserView.vue @@ -775,7 +775,13 @@ export default { viewInCache(param) { this.view = param.view if (this.view && this.view.customAttr) { - this.currentPage.pageSize = parseInt(JSON.parse(this.view.customAttr).size.tablePageSize) + const curPageSize = this.currentPage.pageSize + const newPageSize = parseInt(JSON.parse(this.view.customAttr).size.tablePageSize) + // 分页小转大重置为第一页 + if (curPageSize < newPageSize) { + this.currentPage.page = 1 + } + this.currentPage.pageSize = newPageSize } param.viewId && param.viewId === this.element.propValue.viewId && this.getDataEdit(param) },