vue+elementUi 路由跳转,关闭当前的tab
//第一种,一步到位this.$store.dispatch('app/delView', this.$route).then(() => {this.$router.push({path:'/liuManage/taskExecuteList'});});//第二种// 调用全局挂载的方法,关闭当前页this.$store.dispatch("app/delView", this.$rou
·
//第一种,一步到位
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);
更多推荐
已为社区贡献1条内容
所有评论(0)