From 7bd6a4e896bc0d98df0c4a99810a6c8f44a9897b Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Fri, 22 Apr 2022 15:24:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20TagsView=20=E7=BB=84=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=20active=20=E7=8A=B6=E6=80=81=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 6169583..1426bf8 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -40,8 +40,8 @@ const state = reactive({ left: 0, selectedTag: {} as ITagView, affixTags: [] as ITagView[], - isActive: (route: ITagView) => { - return route.path === route.path + isActive: (tagView: ITagView) => { + return tagView.path === route.path }, isAffix: (tag: ITagView) => { return tag.meta && tag.meta.affix