Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

fix: 修复 iPhone 手机浏览器访问开发环境时可能出现白屏的问题 (#183)

This commit is contained in:
qppq54s 2024-04-22 20:51:32 +08:00 committed by GitHub
parent 82b5bd81ef
commit 6f8755c47c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)