소스 검색

Update Config.ts

czhen 3 년 전
부모
커밋
79b85f4d51
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/src/router/Config.ts

+ 1 - 1
client/src/router/Config.ts

@@ -42,7 +42,7 @@ function importAll(r: any, outOfRoot = false) {
     const dirName = key.split('/config.json').shift().split('/')[1];
     const pathName = content.client?.path;
     const fileEntry = content.client?.entry;
-    if (!(pathName || fileEntry)) return;
+    if (!pathName || !fileEntry) return;
     // console.log(content);
     const auth = content.client?.auth || false;
     const OtherComponent = outOfRoot