<p @click="back()>返回</p>
back() {
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)
}