1.$ router操作路由跳转

this.$router.push({ path: "user" });

2.watch监测到路由发生跳转时刷新一次页面

  watch: {

    $route() {

          location.reload();

                  },

     },

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐