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 {