fix: check service

This commit is contained in:
MystiPanda
2024-06-13 12:58:47 +08:00
parent bc9cbd2993
commit 7b887e4cdd
2 changed files with 10 additions and 2 deletions

View File

@@ -41,8 +41,11 @@ export const ServiceViewer = forwardRef<DialogRef, Props>((props, ref) => {
const onInstall = useLockFn(async () => {
try {
await installService();
mutateCheck();
await mutateCheck();
setOpen(false);
setTimeout(() => {
mutateCheck();
}, 2000);
Notice.success(t("Service Installed Successfully"));
} catch (err: any) {
mutateCheck();