From c97e8d5198b4680acf1ded678bfc26be2eec8b5f Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 10 Mar 2021 10:51:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmodel=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E9=A1=B5=E7=A0=81=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/config/model.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/config/model.vue b/nezha-fronted/src/components/page/config/model.vue index 363874530..31488a092 100644 --- a/nezha-fronted/src/components/page/config/model.vue +++ b/nezha-fronted/src/components/page/config/model.vue @@ -288,7 +288,6 @@ this.$message.error(this.$t("tip.noAccess")); return; } - this.tableData = []; this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo); this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize); this.$set(this.searchLabel, "stat", 1); @@ -374,6 +373,9 @@ tableData: { deep: true, handler(n) { + if (n.length === 0 && this.pageObj.pageNo > 1) { + this.pageNo(this.pageObj.pageNo-1); + } if(!this.delFlag){ // 不是删除时回到顶部 this.$refs.modelTable.bodyWrapper.scrollTop = 0 }else{