mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: close dialog after save
This commit is contained in:
parent
5a38468144
commit
2ad771e7fd
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user