From 413c375942ca10d87db4e8a673abc6704a75cc9a Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 20 Jul 2023 12:41:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E9=80=9A=E8=BF=87`query`=E8=B7=AF=E7=94=B1=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=A6=BB=E5=BC=80=E6=BF=80=E6=B4=BB=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=90=8E=E4=BB=8D=E5=AD=98=E5=9C=A8`card-act?= =?UTF-8?q?ive`=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=AF=BC=E8=87=B4=E9=BC=A0?= =?UTF-8?q?=E6=A0=87`hover`=E6=97=B6=E5=AD=97=E4=BD=93=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E6=9C=AA=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/tag/index.vue | 8 +------- src/layout/hooks/useTag.ts | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) 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]); }