Fix: 修复nwjs打包后板卡页面载入异常
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user