fix: adjust something

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

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