|
@@ -189,6 +189,15 @@ export default {
|
|
_this.$message.error('更新失败')
|
|
_this.$message.error('更新失败')
|
|
} else if (arg.cmd == 'update-downloaded') {
|
|
} else if (arg.cmd == 'update-downloaded') {
|
|
_this.dialogVisible = false
|
|
_this.dialogVisible = false
|
|
|
|
+ _this.$confirm({
|
|
|
|
+ title: '版本更新',
|
|
|
|
+ content: '检测到新版本,是否更新安装',
|
|
|
|
+ okText: '确认',
|
|
|
|
+ cancelText: '取消',
|
|
|
|
+ onOk () {
|
|
|
|
+ ipcRenderer.send('isUpdateNow')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
ipcRenderer.send('checkForUpdate')
|
|
ipcRenderer.send('checkForUpdate')
|