!12 修改了逻辑或的顺序, 将"/index",修改为了"/dashboard"

Merge pull request !12 from 4eversad/newBranch

Former-commit-id: eaf5cf895e
This commit is contained in:
郝先瑞 2023-09-10 15:58:16 +00:00 committed by Gitee
commit a34041faef
1 changed files with 2 additions and 3 deletions

View File

@ -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;