mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix: useVisibilityChange unobserve
This commit is contained in:
@@ -25,7 +25,7 @@ export function useVisibilityChange(
|
||||
};
|
||||
|
||||
const unobserve = () => {
|
||||
observer.observe(target.value);
|
||||
observer.unobserve(target.value);
|
||||
};
|
||||
|
||||
onMounted(observe);
|
||||
|
Reference in New Issue
Block a user