fix: 🐛 修改了逻辑或的顺序, 修改了一个判断条件

Former-commit-id: df2b7b2a0e
This commit is contained in:
4eversad 2023-09-10 18:58:22 +08:00
parent ffee229dd0
commit 9b08e45533
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]
);
} catch (err) {
return false;