From 4e3bd8983c091e7c089b374776da682f090fcd46 Mon Sep 17 00:00:00 2001 From: lijing666 Date: Fri, 2 Sep 2022 10:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3total=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=BD=93=E5=89=8D=E9=A1=B5=E5=A4=A7=E4=BA=8E?= =?UTF-8?q?=E6=80=BB=E9=A1=B5=E6=95=B0=E6=97=B6=EF=BC=8C=E6=9C=AA=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=BD=93=E5=89=8D=E9=A1=B5current=E5=88=B0=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/page.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/page/page.vue b/src/components/page/page.vue index f2bb47e9c..9d19d92f3 100644 --- a/src/components/page/page.vue +++ b/src/components/page/page.vue @@ -170,6 +170,8 @@ let maxPage = Math.ceil(val / this.currentPageSize); if (maxPage < this.currentPage ) { this.currentPage = (maxPage === 0 ? 1 : maxPage); + this.$emit('update:current', this.currentPage); + this.$emit('on-change', this.currentPage); } }, current (val) {