From 6f8755c47cdf546a166c2fd481e0db13718a8f69 Mon Sep 17 00:00:00 2001 From: qppq54s Date: Mon, 22 Apr 2024 20:51:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20iPhone=20=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E6=B5=8F=E8=A7=88=E5=99=A8=E8=AE=BF=E9=97=AE=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E6=97=B6=E5=8F=AF=E8=83=BD=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=99=BD=E5=B1=8F=E7=9A=84=E9=97=AE=E9=A2=98=20(#183)?= 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)