We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1d5fb commit a488b4dCopy full SHA for a488b4d
src/common/components/Screenfull/index.vue
@@ -42,12 +42,12 @@ function handleFullscreenChange() {
42
isFullscreen.value || classList.remove(CONTENT_LARGE, CONTENT_FULL)
43
}
44
45
-watchEffect((onCleanup) => {
+watchEffect(() => {
46
if (isEnabled) {
47
// 挂载组件时自动执行
48
screenfull.on("change", handleFullscreenChange)
49
// 卸载组件时自动执行
50
- onCleanup(() => {
+ onWatcherCleanup(() => {
51
screenfull.off("change", handleFullscreenChange)
52
})
53
0 commit comments