//第一种,一步到位
this.$store.dispatch('app/delView', this.$route).then(() => {
      this.$router.push({
           path:'/liuManage/taskExecuteList'
      });
});


//第二种
// 调用全局挂载的方法,关闭当前页
this.$store.dispatch("app/delView", this.$route);
// 关闭之后跳转你要跳转的路由
this.$router.push({ path: '/liuManage/taskExecuteList' });
// 返回上一步路由,第二种写法
this.$router.go(-1);

Logo

前往低代码交流专区

更多推荐