From 43da07ca4ce7393068ca03b8ec05d4d28db9662c Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 15 Feb 2020 22:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC=E5=AF=B9?= =?UTF-8?q?=E6=AF=94=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/utils/autoUpdate.js | 2 +- src/renderer/App.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/utils/autoUpdate.js b/src/main/utils/autoUpdate.js index d496103d..84ddd8d8 100644 --- a/src/main/utils/autoUpdate.js +++ b/src/main/utils/autoUpdate.js @@ -88,7 +88,7 @@ module.exports = isFirstCheckedUpdate => { }) autoUpdater.on('update-not-available', info => { sendStatusToWindow('Update not available.') - handleSendEvent({ type: 'update-not-available' }) + handleSendEvent({ type: 'update-not-available', info }) }) autoUpdater.on('error', err => { sendStatusToWindow('Error in auto-updater.') diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 9b470787..123dba4a 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -160,11 +160,13 @@ export default { this.showUpdateModal() }) }) - rendererOn('update-not-available', () => { + rendererOn('update-not-available', (e, info) => { this.clearUpdateTimeout() this.setNewVersion({ - version: this.version.version, + version: info.version, + desc: info.releaseNotes, }) + this.setVersionModalVisible({ isLatestVer: true }) }) // 更新超时定时器 this.updateTimeout = setTimeout(() => {