From 52d8b833ee6c3f0061c37dd9bb9ba0ce60d922e2 Mon Sep 17 00:00:00 2001 From: hayden <48267247+hayden-fr@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:30:36 +0800 Subject: [PATCH] Fixed infinite Load --- src/hooks/loading.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/loading.ts b/src/hooks/loading.ts index 889b471..ce3f89e 100644 --- a/src/hooks/loading.ts +++ b/src/hooks/loading.ts @@ -48,7 +48,7 @@ export const useLoading = () => { } const hide = (target: string = '_default') => { - if (targetTimer.value) { + if (targetTimer.value[target]) { clearTimeout(targetTimer.value[target]) targetTimer.value[target] = undefined } else {