diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index c0321598e..685b7e30a 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -522,13 +522,7 @@ onBeforeUnmount(() => { :ref="'dynamic' + index" v-for="(item, index) in multiTags" :key="index" - :class="[ - 'scroll-item is-closable', - linkIsActive(item), - route.path === item.path && showModel === 'card' - ? 'card-active' - : '' - ]" + :class="['scroll-item is-closable', linkIsActive(item)]" @contextmenu.prevent="openMenu(item, $event)" @mouseenter.prevent="onMouseenter(index)" @mouseleave.prevent="onMouseleave(index)" diff --git a/src/layout/hooks/useTag.ts b/src/layout/hooks/useTag.ts index 8d35cdfc1..7feedd30a 100644 --- a/src/layout/hooks/useTag.ts +++ b/src/layout/hooks/useTag.ts @@ -175,7 +175,7 @@ export function useTags() { toggleClass(true, "schedule-in", instance.refs["schedule" + index][0]); toggleClass(false, "schedule-out", instance.refs["schedule" + index][0]); } else { - if (hasClass(instance.refs["dynamic" + index][0], "card-active")) return; + if (hasClass(instance.refs["dynamic" + index][0], "is-active")) return; toggleClass(true, "card-in", instance.refs["dynamic" + index][0]); toggleClass(false, "card-out", instance.refs["dynamic" + index][0]); } @@ -190,7 +190,7 @@ export function useTags() { toggleClass(false, "schedule-in", instance.refs["schedule" + index][0]); toggleClass(true, "schedule-out", instance.refs["schedule" + index][0]); } else { - if (hasClass(instance.refs["dynamic" + index][0], "card-active")) return; + if (hasClass(instance.refs["dynamic" + index][0], "is-active")) return; toggleClass(false, "card-in", instance.refs["dynamic" + index][0]); toggleClass(true, "card-out", instance.refs["dynamic" + index][0]); }