watch: {
'$route' (to, from) {
this.$router.go(0);
}
},
https://blog.csdn.net/wulala_orz/article/details/78928524#commentBox原文(不过这个是页面刷新,所有的都刷新了)
如果想要某个组件刷新的话
有一个我感觉挺笨的方法,就是在请求一遍
watch: {
'$route' (to, from) {
this.$router.go(0);
}
},
https://blog.csdn.net/wulala_orz/article/details/78928524#commentBox原文(不过这个是页面刷新,所有的都刷新了)
如果想要某个组件刷新的话
有一个我感觉挺笨的方法,就是在请求一遍