浏览代码

播放课件常亮

skyblued 2 年之前
父节点
当前提交
1bb3c13f3e
共有 1 个文件被更改,包括 7 次插入0 次删除
  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(() => {