解决方法: 在你想刷新的页面添加watch监听一下route变化
export default {
watch: {
'$route' (to, from) {
//重置所有请求参数,刷新页面
this.xxxx
}
},
就是刷新会白屏一下,但是我也没有其他简单办法了...
export default {
watch: {
'$route' (to, from) {
//重置所有请求参数,刷新页面
this.xxxx
}
},
就是刷新会白屏一下,但是我也没有其他简单办法了...