更新地址
This commit is contained in:
parent
2d7103f7ae
commit
eeccf9a462
2
main.js
2
main.js
|
|
@ -274,7 +274,7 @@ function updateHandle() {
|
|||
updateAva: '检测到新版本,正在下载……',
|
||||
updateNotAva: '现在使用的就是最新版本,不用更新'
|
||||
}
|
||||
autoUpdater.setFeedURL('https://update.23544.com/metting')
|
||||
autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting-update')
|
||||
autoUpdater.autoDownload = false // 不自动下载安装包
|
||||
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
|
||||
autoUpdater.on('error', function (error) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
|||
const [updateContent, setUpdateContent] = useState('') // 版本更新内容
|
||||
|
||||
function getContent() {
|
||||
fetch(`https://update.23544.com/metting/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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue