Merge branch 'zyl' of http://xny.yj-3d.com:3000/zhouyulong/electron-4 into zyl
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user