소스 검색

feat(路由): 删除多余console

xieyonghong 3 년 전
부모
커밋
2f2a550d0f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/utils/menu/index.ts

+ 1 - 2
src/utils/menu/index.ts

@@ -84,7 +84,7 @@ const findExtraRoutes = (baseCode: string, children: any[], url: string) => {
       if (route.children && route.children.length) {
       if (route.children && route.children.length) {
         _route.children = findExtraRoutes(code, route.children, path);
         _route.children = findExtraRoutes(code, route.children, path);
       }
       }
-      console.log(code, component);
+
       return component ? _route : undefined;
       return component ? _route : undefined;
     })
     })
     .filter((item) => !!item);
     .filter((item) => !!item);
@@ -119,7 +119,6 @@ export const handleRoutes = (routes?: MenuItem[], level = 1): MenuItem[] => {
         }
         }
         item.level = level;
         item.level = level;
 
 
-        console.log(item.code, item);
         return item;
         return item;
       })
       })
     : [];
     : [];