From 725287d25df6aac4a90242c0b8f1f9f662f5c060 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 23 Aug 2024 14:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 ++- src/components/UpdateModal/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 37e3b42..f5730d9 100644 --- a/main.js +++ b/main.js @@ -283,6 +283,7 @@ app.on('ready', () => { transparent: true, }); newWindow.loadURL(data.url); + newWindow.focus(); newWindow.webContents.on('before-input-event', (event, input) => { if (env === 'development') { if (input.key === 'F12') { @@ -303,7 +304,7 @@ function updateHandle() { updateAva: '检测到新版本,正在下载……', updateNotAva: '现在使用的就是最新版本,不用更新' } - autoUpdater.setFeedURL('http://test.bossmei.top/electron') + autoUpdater.setFeedURL('https://update.23544.com/metting') autoUpdater.autoDownload = false // 不自动下载安装包 autoUpdater.autoInstallOnAppQuit = false // 不自动安装 autoUpdater.on('error', function (error) { diff --git a/src/components/UpdateModal/index.tsx b/src/components/UpdateModal/index.tsx index 8465477..8c88264 100644 --- a/src/components/UpdateModal/index.tsx +++ b/src/components/UpdateModal/index.tsx @@ -22,7 +22,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => { const [updateContent, setUpdateContent] = useState('') // 版本更新内容 function getContent() { - fetch('http://test.bossmei.top/electron/update.txt') // 配置服务器地址 + fetch('https://update.23544.com/metting/update.txt') // 配置服务器地址 .then(async response => { if (response.status === 200) { return setUpdateContent(await response.text())