diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 1348fd445f75ac2f170ddecead550831ed11e48a..7a33bba7a77e2a2f43009da22107cd054ebc1cc4 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].fullPath ); } catch (err) { return false;