Explorar o código

fix: 修复导航tab过多导致关闭左侧标签页无法正常显示 (#454)

luojz %!s(int64=2) %!d(string=hai) anos
pai
achega
b4456dc71a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/layout/components/tag/index.vue

+ 1 - 1
src/layout/components/tag/index.vue

@@ -193,13 +193,13 @@ function deleteDynamicTag(obj: any, current: any, tag?: string) {
   ): void => {
     if (other) {
       useMultiTagsStoreHook().handleTags("equal", [routerArrays[0], obj]);
-      dynamicTagView();
     } else {
       delAliveRouteList = useMultiTagsStoreHook().handleTags("splice", "", {
         startIndex,
         length
       }) as any;
     }
+    dynamicTagView();
   };
 
   if (tag === "other") {