美文网首页
vue tab页签操作后关闭页签返回上一页

vue tab页签操作后关闭页签返回上一页

作者: Eudemonia_C | 来源:发表于2020-01-16 10:12 被阅读0次

    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)

    相关文章

      网友评论

          本文标题:vue tab页签操作后关闭页签返回上一页

          本文链接:https://www.haomeiwen.com/subject/mccfzctx.html