mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-07 21:19:51 +00:00
fix: tsc build error
This commit is contained in:
parent
d964b129b0
commit
211f66dc0a
@ -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 () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user