From 211f66dc0a9de5b2b9ff1fd6f6e2433a6365fcad Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 27 May 2025 04:43:44 +0800 Subject: [PATCH] fix: tsc build error --- ui/src/components/ModalForm.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ui/src/components/ModalForm.tsx b/ui/src/components/ModalForm.tsx index 8065d2f1..7fe54951 100644 --- a/ui/src/components/ModalForm.tsx +++ b/ui/src/components/ModalForm.tsx @@ -89,13 +89,6 @@ const ModalForm = = any>({ modalProps?.afterClose?.(); }, - onClose: async (e) => { - if (formPending) return; - - // 关闭 Modal 时 Promise.reject 阻止关闭 - await modalProps?.onClose?.(e as React.MouseEvent | React.KeyboardEvent); - setOpen(false); - }, }; const handleOkClick = async () => {