Parcourir la source

播放课件常亮

skyblued il y a 2 ans
Parent
commit
1bb3c13f3e
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      src/views/coursewarePlay/index.tsx

+ 7 - 0
src/views/coursewarePlay/index.tsx

@@ -106,6 +106,13 @@ export default defineComponent({
           isVisibility: type
         }
       })
+      // 进入页面设置常量
+      postMessage({
+        api: 'keepScreenLongLight',
+        content: {
+          isOpenLight: type ? true : false
+        }
+      })
     }
     handleInit()
     onUnmounted(() => {