fix: adjust something

This commit is contained in:
GyDi authored and GitHub committed 2022-04-25 20:00:11 +08:00
1 parent 9319851118
commit c2d0ccea3c
4 files changed
+11 -7

No files matched your search

+2 -2
View File
@@ -41,8 +41,8 @@ const ServiceMode = (props: Props) => {
try {
await installService();
mutate("checkService");
Notice.success("Service installed successfully");
onClose();
Notice.success("Service installed successfully");
} catch (err: any) {
mutate("checkService");
onError(err);
@@ -56,9 +56,9 @@ const ServiceMode = (props: Props) => {
}
await uninstallService();
Notice.success("Service uninstalled successfully");
mutate("checkService");
onClose();
Notice.success("Service uninstalled successfully");
} catch (err: any) {
mutate("checkService");
onError(err);