fix: tsc build error

main
Fu Diwei 2025-05-27 04:43:44 +08:00
parent d964b129b0
commit 211f66dc0a
1 changed files with 0 additions and 7 deletions

View File

@ -89,13 +89,6 @@ const ModalForm = <T extends NonNullable<unknown> = 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 () => {