修改配置

This commit is contained in:
yj 2025-02-25 10:42:36 +08:00
parent 6d6a9756e8
commit ac00b4b2a9
1 changed files with 4 additions and 2 deletions

View File

@ -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);//窗口禁用