//第一种,一步到位
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);
vue+elementUi 路由跳转,关闭当前的tab
最新推荐文章于 2022-10-28 15:32:33 发布