From ac00b4b2a9a4174f9b85807400bd014033286d3d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 25 Feb 2025 10:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);//窗口禁用