From d17070d927ef57131d4426df28d1d6e7408b580d Mon Sep 17 00:00:00 2001 From: long <126090097+xionnon@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:27:49 +0800 Subject: [PATCH] Update index.js When the state.onserver is true, the window.IntersectionObserver property is true. --- v-lazy-image/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v-lazy-image/index.js b/v-lazy-image/index.js index 6df9f70..5e459d2 100644 --- a/v-lazy-image/index.js +++ b/v-lazy-image/index.js @@ -69,7 +69,7 @@ export default { }); onBeforeUnmount(() => { - if ("IntersectionObserver" in window && state.observer) { + if (state.observer) { state.observer.disconnect(); } });