分页缓存

master
yujialong 3 years ago
parent d814e20384
commit e8c7b98254
  1. 9
      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() { //

Loading…
Cancel
Save