参数改变,跳转页面数据不刷新的解决办法

Vue用router.push(传参)跳转页面,参数改变,跳转页面数据不刷新的解决办法
watch: {

‘$route’ (to, from) {

 this.$router.go(0);   

}}
用这段代码来监视路由变化。。

猜你喜欢

转载自blog.csdn.net/qq_38367710/article/details/83589754