RuoYi
2025-04-27 7b6fdb3a893275ff82ba5c868287a1e12dcd75f1
ruoyi-ui/src/layout/components/TagsView/index.vue
@@ -51,7 +51,7 @@
      return this.$store.state.permission.routes
    },
    theme() {
      return this.$store.state.settings.theme;
      return this.$store.state.settings.theme
    }
  },
  watch: {
@@ -76,11 +76,11 @@
      return route.path === this.$route.path
    },
    activeStyle(tag) {
      if (!this.isActive(tag)) return {};
      if (!this.isActive(tag)) return {}
      return {
        "background-color": this.theme,
        "border-color": this.theme
      };
      }
    },
    isAffix(tag) {
      return tag.meta && tag.meta.affix
@@ -133,11 +133,7 @@
      const { name } = this.$route
      if (name) {
        this.$store.dispatch('tagsView/addView', this.$route)
        if (this.$route.meta.link) {
          this.$store.dispatch('tagsView/addIframeView', this.$route)
        }
      }
      return false
    },
    moveToCurrentTag() {
      const tags = this.$refs.tag
@@ -155,7 +151,7 @@
      })
    },
    refreshSelectedTag(view) {
      this.$tab.refreshPage(view);
      this.$tab.refreshPage(view)
      if (this.$route.meta.link) {
        this.$store.dispatch('tagsView/delIframeView', this.$route)
      }
@@ -182,7 +178,7 @@
      })
    },
    closeOthersTags() {
      this.$router.push(this.selectedTag.fullPath).catch(()=>{});
      this.$router.push(this.selectedTag.fullPath).catch(()=>{})
      this.$tab.closeOtherPage(this.selectedTag).then(() => {
        this.moveToCurrentTag()
      })