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