From cd2686298bbc48ecbf2ad310dffeaeede7255190 Mon Sep 17 00:00:00 2001 From: qppq54s Date: Thu, 11 Apr 2024 16:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E8=AE=BF=E9=97=AE=E7=99=BD=E5=B1=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Screenfull/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index af5147a7..1744e28d 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -40,7 +40,7 @@ const handleFullscreenChange = () => { } watchEffect((onCleanup) => { // 挂载组件时自动执行 - screenfull.on("change", handleFullscreenChange) + screenfull.isEnabled && screenfull.on("change", handleFullscreenChange) // 卸载组件时自动执行 onCleanup(() => { screenfull.isEnabled && screenfull.off("change", handleFullscreenChange)