Explorar o código

播放课件常亮

skyblued %!s(int64=2) %!d(string=hai) anos
pai
achega
1bb3c13f3e
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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(() => {