refactor: 浏览器回退问题
This commit is contained in:
parent
9ebc2163ba
commit
3db24258f4
|
@ -14,7 +14,7 @@
|
|||
methods: {
|
||||
changeRoute() {
|
||||
// 解决在列表页面点击 显示全部 无效的问题(点击显示全部后改变路由)
|
||||
this.$router.push({path: this.index, query: {type: 'all'}});
|
||||
this.$router.replace({path: this.index, query: {type: 'all'}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue