From ad6a607949d3f3da48c868097261cf81cb1f2c30 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 29 Dec 2021 11:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.vue | 3 +++ src/views/Transaction.vue | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 93deec5..38d85c8 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -211,6 +211,9 @@ export default { console.log(err); }); } + if(this.nameList.length === this.tableData.length && this.pageNum>1) { + this.handleCurrentChange(this.pageNum - 1) + } }).catch(() => { this.$message.info("已取消删除"); }); diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index eaa9734..1207f18 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -54,7 +54,7 @@ 新增 - +
确 定 +