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:
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user