需求:点击返回按钮 返回前一页面 并关闭当前页面的tagView
实现:this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
将上述代码复制到返回按钮的点击事件中即可
需求:点击返回按钮 返回前一页面 并关闭当前页面的tagView
实现:this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
将上述代码复制到返回按钮的点击事件中即可