This commit is contained in:
zyl
2025-11-24 16:41:00 +08:00

View File

@ -370,23 +370,23 @@ const getAuthInfo = async () => {
}
} catch (error) {
// 统一处理错误
// ElMessageBox.confirm('您没有进行系统授权哦,系统功能将无法使用?', '提示', {
// confirmButtonText: '去授权',
// cancelButtonText: '退出系统',
// type: 'warning',
// closeOnClickModal: false
// })
// .then(async () => {
// try {
// baseDialog.value?.open()
// } catch (error) {
// console.error('打开授权对话框失败:', error)
// }
// })
// .catch(() => {
// // 用户点击取消,不执行任何操作
// ipcRenderer.send('quit-app')
// })
ElMessageBox.confirm('您没有进行系统授权哦,系统功能将无法使用?', '提示', {
confirmButtonText: '去授权',
cancelButtonText: '退出系统',
type: 'warning',
closeOnClickModal: false
})
.then(async () => {
try {
baseDialog.value?.open()
} catch (error) {
console.error('打开授权对话框失败:', error)
}
})
.catch(() => {
// 用户点击取消,不执行任何操作
ipcRenderer.send('quit-app')
})
}
}
const baseDialog = ref(null)