Refactor(Modal): Optimize modal code

This commit is contained in:
2024-05-01 16:12:57 +08:00
parent 0ca5d8fc52
commit 80bec52fcd
4 changed files with 14 additions and 11 deletions

View File

@@ -112,8 +112,8 @@ const SignIn = () => {
case PERMISSION_NEED_TWO_FACTOR:
twoFactorForm.resetFields()
void modal.confirm({
title: '双因素验证',
centered: true,
title: '双因素验证',
footer: (_, { OkBtn, CancelBtn }) => (
<>
<OkBtn />