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())