Browse Source

Update Config.ts

czhen 3 years ago
parent
commit
79b85f4d51
1 changed files with 1 additions and 1 deletions
  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