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(() => {