Explorar o código

Update Config.ts

czhen %!s(int64=3) %!d(string=hai) anos
pai
achega
79b85f4d51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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