From e3303ad903736eeef07a6ddf40ea5c00e978a3ef Mon Sep 17 00:00:00 2001 From: youngq Date: Thu, 5 Sep 2024 16:21:50 +0800 Subject: [PATCH] 1 --- main.js | 4 ++-- package.json | 4 ++-- src/components/UpdateModal/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 01a5e8b..f4e8306 100644 --- a/main.js +++ b/main.js @@ -272,9 +272,9 @@ function updateHandle() { error: '检查更新出错', checking: '正在检查更新……', updateAva: '检测到新版本,正在下载……', - updateNotAva: '现在使用的就是最新版本,不用更新' + updateNotAva: '已经是最新版本,不用更新' } - autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting-update') + autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting/update') autoUpdater.autoDownload = false // 不自动下载安装包 autoUpdater.autoInstallOnAppQuit = false // 不自动安装 autoUpdater.on('error', function (error) { diff --git a/package.json b/package.json index baaf60e..9f08de0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "WGShare.Metting", "private": true, - "version": "0.1.3", + "version": "0.1.14", "main": "main.js", "authors": "yj", "description": "智汇享", @@ -69,7 +69,7 @@ "publish": [ { "provider": "generic", - "url": "https://meeting-api.23544.com/meeting-update" + "url": "https://meeting-api.23544.com/meeting/update" } ], "files": [ diff --git a/src/components/UpdateModal/index.tsx b/src/components/UpdateModal/index.tsx index 3cfd7af..f418f2c 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(`https://meeting-api.23544.com/meeting-update/update.txt?t=${+new Date()}`) // 配置服务器地址 + fetch(`https://meeting-api.23544.com/meeting/update/update.txt?t=${+new Date()}`) // 配置服务器地址 .then(async response => { if (response.status === 200) { return setUpdateContent(await response.text())