Browse Source

课程播放横屏

skyblued 2 years ago
parent
commit
63294f0761
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/coursewarePlay/index.tsx

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

@@ -7,10 +7,14 @@ import 'plyr/dist/plyr.css'
 import request from '@/helpers/request'
 import { state } from '@/state'
 import { useRoute } from 'vue-router'
+import { postMessage } from '@/helpers/native-message'
 
 export default defineComponent({
   name: 'CoursewarePlay',
   setup() {
+    postMessage({
+      api: 'setRequestedOrientation'
+    })
     const route = useRoute()
     const data = reactive({
       detail: null,