liushengqiang 1 year ago
parent
commit
12e6858797
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/coursewarePlay/index.tsx

+ 1 - 1
src/views/coursewarePlay/index.tsx

@@ -71,7 +71,7 @@ export default defineComponent({
   setup() {
     const pageVisibility = usePageVisibility()
     /** 页面显示和隐藏 */
-    watch(pageVisibility, (value) => {
+    watch(() => pageVisibility.value, (value) => {
       if (value == 'hidden') {
         handleStop()
       }