فهرست منبع

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) {
         _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;
       })
     : [];