使用vue的全局函数
// this.$route 当前页签路由,既要关闭的页签路由
this.$store.dispatch('tagsView/delView', this.$route).then(() => {
this.$router.replace({ path:'xxx' }) // 关闭后要去往的页签路由
})
使用vue的全局函数
// this.$route 当前页签路由,既要关闭的页签路由
this.$store.dispatch('tagsView/delView', this.$route).then(() => {
this.$router.replace({ path:'xxx' }) // 关闭后要去往的页签路由
})