소스 검색

chore: cleanup

Sendya 5 년 전
부모
커밋
7467155963
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/utils/routeConvert.js

+ 0 - 2
src/utils/routeConvert.js

@@ -16,11 +16,9 @@ export function convertRoutes (nodes) {
       if (!node.children || !node.children.length) continue
 
       node.children.forEach(child => {
-        console.log('child', child)
         // 转化相对路径
         if (child.path[0] !== '/' && !child.path.startsWith('http')) {
           child.path = node.path.replace(/(\w*)[/]*$/, `$1/${child.path}`)
-          console.log('child.path', child.path)
         }
       })