he wei
2023-12-23 fc842d9e22aef1946df050257be41b4bfbd838a9
src/layout/components/TagsView/index.vue
@@ -7,30 +7,32 @@
      @toggleClick="toggleSideBar"
    />
    <div class="tags-inner">
      <scroll-pane
        ref="scrollPane"
        class="tags-view-wrapper"
        @scroll="handleScroll"
      >
        <router-link
          v-for="tag in visitedViews"
          ref="tag"
          :key="tag.path"
          :class="isActive(tag) ? 'active' : ''"
          :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
          tag="span"
          class="tags-view-item"
          @click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''"
          @contextmenu.prevent.native="openMenu(tag, $event)"
      <div class="pos-full">
        <scroll-pane
          ref="scrollPane"
          class="tags-view-wrapper"
          @scroll="handleScroll"
        >
          {{ tag.title }}
          <span
            v-if="!isAffix(tag)"
            class="el-icon-close"
            @click.prevent.stop="closeSelectedTag(tag)"
          />
        </router-link>
      </scroll-pane>
          <router-link
            v-for="tag in visitedViews"
            ref="tag"
            :key="tag.path"
            :class="isActive(tag) ? 'active' : ''"
            :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
            tag="span"
            class="tags-view-item"
            @click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''"
            @contextmenu.prevent.native="openMenu(tag, $event)"
          >
            {{ tag.title }}
            <span
              v-if="!isAffix(tag)"
              class="el-icon-close"
              @click.prevent.stop="closeSelectedTag(tag)"
            />
          </router-link>
        </scroll-pane>
      </div>
    </div>
    <ul
      v-show="visible"
@@ -241,6 +243,7 @@
  display: flex;
  .tags-inner {
    flex: 1;
    position: relative;
  }
  .tags-view-wrapper {
    .tags-view-item {