fix: useVisibilityChange unobserve

This commit is contained in:
chenjiahan 2020-08-28 17:31:48 +08:00
parent 8f8e9675ee
commit d1df127249

View File

@ -25,7 +25,7 @@ export function useVisibilityChange(
};
const unobserve = () => {
observer.observe(target.value);
observer.unobserve(target.value);
};
onMounted(observe);