|
|
@@ -35,7 +35,7 @@ module.exports = (appInfo) => {
|
|
|
webSecurity: false,
|
|
|
contextIsolation: false, // false -> 可在渲染进程中使用electron的api,true->需要bridge.js(contextBridge)
|
|
|
nodeIntegration: true,
|
|
|
- preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
|
|
|
+ // preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
|
|
|
},
|
|
|
show: false,
|
|
|
icon: path.join(appInfo.home, 'public', 'images', 'logo-32.png'),
|
|
|
@@ -64,7 +64,7 @@ module.exports = (appInfo) => {
|
|
|
* 远程模式-web地址
|
|
|
*/
|
|
|
config.remoteUrl = {
|
|
|
- enable: false,
|
|
|
+ enable: true,
|
|
|
url: 'http://localhost:3000'
|
|
|
};
|
|
|
|