如何使用Vue Element实现关闭当前tab页并跳转至上一个路由?
- 内容介绍
- 文章标签
- 相关推荐
本文共计274个文字,预计阅读时间需要2分钟。
方法一:使用this.$store.dispatch('delVisitedViews', this.$route); followed by this.$router.go(-1);
方法二:通过this.$store.state.tagsView.visitedViews.splice方法移除当前路由。
本文共计274个文字,预计阅读时间需要2分钟。
方法一:使用this.$store.dispatch('delVisitedViews', this.$route); followed by this.$router.go(-1);
方法二:通过this.$store.state.tagsView.visitedViews.splice方法移除当前路由。

