vue关闭当前页签,返回到上一个页面
方法一:this.$store.dispatch('delVisitedViews', this.$route);this.$router.go(-1);方法二:this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path =
·
方法一:
this.$store.dispatch('delVisitedViews', this.$route);
this.$router.go(-1);
方法二:
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)
更多推荐
已为社区贡献2条内容
所有评论(0)