Skip to content

Commit

Permalink
fix(utils): modalLogout bug when esc is pressed (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma-plus committed Jun 3, 2024
1 parent d08a381 commit bd69c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/service/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ export const request = createFlatRequest<App.Service.Response, RequestInstanceSt

window.$dialog?.error({
title: 'Error',
content: response.data.code,
content: response.data.msg,
positiveText: $t('common.confirm'),
maskClosable: false,
closeOnEsc: false,
onPositiveClick() {
logoutAndCleanup();
},
Expand Down

0 comments on commit bd69c00

Please sign in to comment.