修复自动更新功能

This commit is contained in:
haiyangcui
2020-11-01 17:29:57 +01:00
parent 22b877b0fb
commit 1078cf3c63

View File

@@ -403,7 +403,7 @@ export default {
getLatestVersion () {
ipcRenderer.send('checkForUpdate')
ipcRenderer.on('update-available', (e, info) => {
this.d.latestVersion = info.version
this.latestVersion = info.version
})
ipcRenderer.on('update-error', () => {
this.$message.warning = '更新出错.'