mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
fix: useVisibilityChange unobserve
This commit is contained in:
parent
8f8e9675ee
commit
d1df127249
@ -25,7 +25,7 @@ export function useVisibilityChange(
|
||||
};
|
||||
|
||||
const unobserve = () => {
|
||||
observer.observe(target.value);
|
||||
observer.unobserve(target.value);
|
||||
};
|
||||
|
||||
onMounted(observe);
|
||||
|
Loading…
x
Reference in New Issue
Block a user