1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

fix: useVisibilityChange unobserve

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

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