vue tab页签操作后关闭页签返回上一页
2020-01-16 本文已影响0人
Eudemonia_C
this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path ===this.$route.path), 1)
this.$router.push(this.$store.state.tagsView.visitedViews[this.$store.state.tagsView.visitedViews.length -1].path)