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

再跳转后的路由观察路由变化,进行页面刷新。

watch: {

    '$route' (to, from) {

     this.$router.go(0);

}}

参考https://blog.csdn.net/wulala_orz/article/details/78928524#commentBox

猜你喜欢

转载自blog.csdn.net/qq_18223479/article/details/80734235