diff --git a/components/_util/hooks/useDestroyed.ts b/components/_util/hooks/useDestroyed.ts index d5cd6b0f4..57cc17230 100644 --- a/components/_util/hooks/useDestroyed.ts +++ b/components/_util/hooks/useDestroyed.ts @@ -1,12 +1,12 @@ import { onBeforeUnmount, ref } from 'vue'; const useDestroyed = () => { - const mounted = ref(true); + const destroyed = ref(false); onBeforeUnmount(() => { - mounted.value = false; + destroyed.value = true; }); - return mounted; + return destroyed; }; export default useDestroyed;