lilei 3 tahun lalu
induk
melakukan
820b3d17a4
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      src/views/user/Login.vue

+ 9 - 0
src/views/user/Login.vue

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