X.B-H
2021-01-06 b7cdd10f9f97bf01de65f9ba46a6daffec2b93e4
ruoyi-ui/src/layout/components/TagsView/index.vue
@@ -153,14 +153,14 @@
      })
    },
    closeOthersTags() {
      this.$router.push(this.selectedTag)
      this.$router.push(this.selectedTag).catch(()=>{});
      this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
        this.moveToCurrentTag()
      })
    },
    closeAllTags(view) {
      this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => {
        if (this.affixTags.some(tag => tag.path === view.path)) {
        if (this.affixTags.some(tag => tag.path === this.$route.path)) {
          return
        }
        this.toLastView(visitedViews, view)