From 1dce2479b07231eb63bb361f12b333780aca64be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Wed, 25 May 2022 14:43:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=E5=88=B7=E6=96=B0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E7=A9=BA=E7=99=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 11 +++++++---- src/plugins/tab.js | 14 ++++++-------- src/views/redirect/index.vue | 9 +++++---- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 16c443a..f5b2989 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -5,7 +5,7 @@ v-for="tag in visitedViews" :key="tag.path" :data-path="tag.path" - :class="isActive(tag) ? 'active' : ''" + :class="{ active: isActive(tag) }" :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" class="tags-view-item" :style="activeStyle(tag)" @@ -19,7 +19,10 @@