fix: tsc build error

This commit is contained in:
Fu Diwei 2025-05-27 04:43:44 +08:00
parent d964b129b0
commit 211f66dc0a

View File

@ -89,13 +89,6 @@ const ModalForm = <T extends NonNullable<unknown> = any>({
modalProps?.afterClose?.(); 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 () => { const handleOkClick = async () => {