vue element 关闭当前tab 跳转某个指定路由

原创
2021/09/01 16:17
阅读数 669
this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)

let path = '/system/index'

this.$router.push({ path: path }).catch(()=>{});

 

参考于:https://www.cnblogs.com/zhang-wenbin/p/11075897.html

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部