疯狂的狮子li
2021-02-07 2c40a892f8de3bdf1b2ec9b76afd23a603c3bcb7
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)