fix: 🐛 修改了逻辑或的顺序, 修改了一个判断条件
Former-commit-id: df2b7b2a0e2ff04d25d0b6d427aef39c5967f8be
This commit is contained in:
@@ -120,9 +120,8 @@ function isAffix(tag: TagView) {
|
|||||||
function isFirstView() {
|
function isFirstView() {
|
||||||
try {
|
try {
|
||||||
return (
|
return (
|
||||||
(selectedTag.value as TagView).fullPath ===
|
(selectedTag.value as TagView).fullPath === "/dashboard" ||
|
||||||
tagsViewStore.visitedViews[1].fullPath ||
|
(selectedTag.value as TagView).fullPath === tagsViewStore.visitedViews[1]
|
||||||
(selectedTag.value as TagView).fullPath === "/index"
|
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user