diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index f33f9fc..c6ebdba 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -94,7 +94,7 @@ function isAffix(tag) { } function isFirstView() { try { - return selectedTag.value.fullPath === visitedViews.value[1].fullPath || selectedTag.value.fullPath === '/index' + return selectedTag.value.fullPath === '/index' || selectedTag.value.fullPath === visitedViews.value[1].fullPath } catch (err) { return false }