监听route传过来的参数不刷新

watch: {
    '$route' (to, from) {
        this.$router.go(0);
    }
},

https://blog.csdn.net/wulala_orz/article/details/78928524#commentBox原文(不过这个是页面刷新,所有的都刷新了)

如果想要某个组件刷新的话

有一个我感觉挺笨的方法,就是在请求一遍

猜你喜欢

转载自blog.csdn.net/qq_42809973/article/details/84394896