1.$ router操作路由跳转
this.$router.push({ path: "user" });
2.watch监测到路由发生跳转时刷新一次页面
watch: {
$route() {
location.reload();
},
},
1.$ router操作路由跳转
this.$router.push({ path: "user" });
2.watch监测到路由发生跳转时刷新一次页面
watch: {
$route() {
location.reload();
},
},