RuoYi
2026-03-22 b33ea72445dc8ade95de9a1330f24391ec6e6564
ruoyi-ui/src/layout/components/TagsView/index.vue
@@ -177,10 +177,13 @@
      return tags
    },
    initTags() {
      if (this.$store.state.settings.tagsViewPersist) {
        this.$store.dispatch('tagsView/loadPersistedViews')
      }
      const affixTags = this.affixTags = this.filterAffixTags(this.routes)
      for (const tag of affixTags) {
        if (tag.name) {
          this.$store.dispatch('tagsView/addVisitedView', tag)
          this.$store.dispatch('tagsView/addAffixView', tag)
        }
      }
    },