feat(core): add enable cloud failed notify (#6741)

This commit is contained in:
EYHN
2024-04-30 04:46:08 +00:00
parent 148e058cde
commit 764da784ae
3 changed files with 19 additions and 8 deletions

View File

@@ -112,6 +112,7 @@ export const ConfirmModalProvider = ({ children }: PropsWithChildren) => {
return Promise.resolve(_onConfirm?.())
.then(() => onSuccess?.())
.catch(console.error)
.finally(() => setLoading(false))
.finally(() => autoClose && closeConfirmModal());
};
setModalProps({ ...otherProps, onConfirm, open: true });