修改配置
This commit is contained in:
parent
6d6a9756e8
commit
ac00b4b2a9
6
main.js
6
main.js
|
|
@ -58,8 +58,9 @@ class AppWindow extends BrowserWindow {
|
||||||
this.loadURL('http://localhost:3000');
|
this.loadURL('http://localhost:3000');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.loadFile(path.resolve(__dirname, './dist/index.html'))
|
this.loadURL('https://meeting-api.23544.com/')
|
||||||
}
|
}
|
||||||
|
// this.loadFile(path.resolve(__dirname, './dist/index.html'))
|
||||||
this.once('ready-to-show', () => {
|
this.once('ready-to-show', () => {
|
||||||
this.show();
|
this.show();
|
||||||
});
|
});
|
||||||
|
|
@ -621,7 +622,8 @@ app.on('ready', () => {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 测试 | 生产
|
// 测试 | 生产
|
||||||
child.loadURL(`file://${path.join(__dirname, './dist/index.html')}#/${config.key}`);
|
child.loadURL(`https://meeting-api.23544.com/#/${config.key}`);
|
||||||
|
// child.loadURL(`file://${path.join(__dirname, './dist/index.html')}#/${config.key}`);
|
||||||
}
|
}
|
||||||
child.hookWindowMessage(278, function (e) {
|
child.hookWindowMessage(278, function (e) {
|
||||||
child.setEnabled(false);//窗口禁用
|
child.setEnabled(false);//窗口禁用
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue