Fix: 修复nwjs打包后板卡页面载入异常

This commit is contained in:
王立帮
2025-02-24 23:10:39 +08:00
parent 8699cf26d7
commit 9eb5e500fe
5 changed files with 7 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ Config.init = () => {
let pathPrefix = '../';
Config.SOFTWARE = goog.getJSON(path.join(pathPrefix, 'sw-config.json'), SOFTWARE_DEFAULT_CONFIG);
Config.SOFTWARE = goog.getJSON(path.join(Env.srcDirPath, 'sw-config.json'), SOFTWARE_DEFAULT_CONFIG);
Config.pathPrefix = pathPrefix;
Env.hasSocketServer = Config.SOFTWARE?.webSocket?.enabled ? true : false;