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

This commit is contained in:
EYHN committed 2024-04-30 04:46:09 +00:00
1 parent 148e058cde
commit 764da784ae
3 files changed
+19 -8

No files matched your search

@@ -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 });