fix: close dialog after save

This commit is contained in:
GyDi 2022-03-28 01:09:34 +08:00
parent 5a38468144
commit 2ad771e7fd
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084

View File

@ -71,6 +71,7 @@ const FileEditor = (props: Props) => {
try { try {
await saveProfileFile(uid, value); await saveProfileFile(uid, value);
onChange?.(); onChange?.();
onClose();
} catch (err: any) { } catch (err: any) {
Notice.error(err.message || err.toString()); Notice.error(err.message || err.toString());
} }