loulijun2021
2023-01-06 72932dd999c97b14fa561002d332520985178cf5
src/layout/components/TagsView/index.vue
@@ -9,6 +9,7 @@
        :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
        tag="span"
        class="tags-view-item"
        :style="{background:isActive(tag)?$store.state.settings.theme:'',border:isActive(tag)?'1px solid'+$store.state.settings.theme:''}"
        @click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
        @contextmenu.prevent.native="openMenu(tag,$event)"
      >
@@ -62,10 +63,11 @@
  },
  computed: {
    visitedViews() {
      if (this.$store.state.tagsView.visitedViews.length > 10) {
        // eslint-disable-next-line vue/no-side-effects-in-computed-properties
        this.dialogVisible = true
      }
      // 暂时取消十个标签页限制提示
      // if (this.$store.state.tagsView.visitedViews.length > 10) {
      //   // eslint-disable-next-line vue/no-side-effects-in-computed-properties
      //   this.dialogVisible = true
      // }
      return this.$store.state.tagsView.visitedViews
    },
    routes() {
@@ -263,7 +265,7 @@
}
</script>
<style lang="scss" scoped>
<style lang="scss">
$main_color: #42b983;
.tags-view-container {
  height: 34px;