fix(utils): modalLogout bug when esc is pressed (#470)

This commit is contained in:
Alue Gitman 2024-06-03 10:42:42 +08:00 committed by GitHub
parent d08a3817d1
commit bd69c00e74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,9 +64,10 @@ export const request = createFlatRequest<App.Service.Response, RequestInstanceSt
window.$dialog?.error({ window.$dialog?.error({
title: 'Error', title: 'Error',
content: response.data.code, content: response.data.msg,
positiveText: $t('common.confirm'), positiveText: $t('common.confirm'),
maskClosable: false, maskClosable: false,
closeOnEsc: false,
onPositiveClick() { onPositiveClick() {
logoutAndCleanup(); logoutAndCleanup();
}, },