소스 검색

fix: close all tags

xingyu 2 년 전
부모
커밋
7617fb07b3
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue

+ 2 - 3
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue

@@ -114,8 +114,8 @@ const toLastView = () => {
       addTags()
       return
     }
-    // You can set another route
-    push(permissionStore.getAddRouters[0].path)
+    // TODO: You can set another route
+    push('/')
   }
 }
 
@@ -128,7 +128,6 @@ const moveToCurrentTag = async () => {
       if (v.fullPath !== unref(currentRoute).fullPath) {
         tagsViewStore.updateVisitedView(unref(currentRoute))
       }
-
       break
     }
   }