this.$router.push跳转到当前页 页面没有刷新

在router-view 中加入 key 就好了,因为在路由页面存在页面缓存。
<router-view :key="this.$route.path"></router-view>

猜你喜欢

转载自www.cnblogs.com/ch-zaizai/p/11096138.html