asher
2021-03-04 f938a24df00809418ff83859aa4041c4fc83a505
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)