diff --git a/main.js b/main.js index 24d2362..a1d46cd 100644 --- a/main.js +++ b/main.js @@ -58,8 +58,9 @@ class AppWindow extends BrowserWindow { this.loadURL('http://localhost:3000'); } } 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.show(); }); @@ -621,7 +622,8 @@ app.on('ready', () => { } } 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.setEnabled(false);//窗口禁用