Skip to content

Commit

Permalink
fix: 修复 iPhone 手机浏览器访问开发环境时可能出现白屏的问题 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
qppq54s authored Apr 22, 2024
1 parent 82b5bd8 commit 6f8755c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Screenfull/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f8755c

Please sign in to comment.