소스 검색

首页页签右键选择时不显示关闭左侧

RuoYi 2 년 전
부모
커밋
6a5e441155
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/layout/components/TagsView/index.vue

+ 1 - 1
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
   }