diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 1348fd44..1fcd6fc0 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -120,9 +120,8 @@ function isAffix(tag: TagView) { function isFirstView() { try { return ( - (selectedTag.value as TagView).fullPath === - tagsViewStore.visitedViews[1].fullPath || - (selectedTag.value as TagView).fullPath === "/index" + (selectedTag.value as TagView).fullPath === "/dashboard" || + (selectedTag.value as TagView).fullPath === tagsViewStore.visitedViews[1] ); } catch (err) { return false;