From e8c7b982541a26119bb38658fec41d627fcf67d5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 28 Apr 2022 15:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 0bc4038..38d85c8 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -95,7 +95,7 @@ export default { searchTimer: null, tableData: [], dataTotal: 0, // 总条数,根据接口获取数据长度(注意:这里不能为空) - pageNum: +this.$route.query.page || 1, + pageNum: 1, pageSize: 10, currentPage: 1, systemId: this.$route.query.systemId, @@ -131,13 +131,6 @@ export default { }, handleCurrentChange(val) { // 切换页码 this.pageNum = val; - this.$router.redirect({ - path: '/', - query: { - ...this.$route.query, - page: val - } - }) this.initData(); }, initData() { // 获取初始数据