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

Merge pull request !12 from 4eversad/newBranch

Former-commit-id: eaf5cf895e02d2453d0150f2df98c544852d37e2
This commit is contained in:
郝先瑞
2023-09-10 15:58:16 +00:00
committed by Gitee

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;