Explorar o código

feat(路由): 删除多余console

xieyonghong %!s(int64=3) %!d(string=hai) anos
pai
achega
2f2a550d0f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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) {
         _route.children = findExtraRoutes(code, route.children, path);
       }
-      console.log(code, component);
+
       return component ? _route : undefined;
     })
     .filter((item) => !!item);
@@ -119,7 +119,6 @@ export const handleRoutes = (routes?: MenuItem[], level = 1): MenuItem[] => {
         }
         item.level = level;
 
-        console.log(item.code, item);
         return item;
       })
     : [];