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() { // 获取初始数据