Ver Fonte

fix:课件去播放

liushengqiang há 1 ano atrás
pai
commit
3e78c9b81c
1 ficheiros alterados com 4 adições e 6 exclusões
  1. 4 6
      src/views/courseware-play/component/musicScore.tsx

+ 4 - 6
src/views/courseware-play/component/musicScore.tsx

@@ -101,17 +101,14 @@ export default defineComponent({
       if (!browserInfo.ios) {
         isLoading.value = true;
       }
-      const Authorization =
-        sessionStorage.getItem('Authorization') ||
-        'bearer 529d1359-20c6-4ea2-b2ba-2694cdeda8a4';
+      const Authorization = storage.get(ACCESS_TOKEN);
       const origin = /(localhost|192)/.test(location.host)
-        ? 'https://dev.kt.colexiu.com'
+        ? 'https://test.lexiaoya.cn'
         : location.origin;
       let src = qs.stringifyUrl({
         url: origin + '/instrument',
         query: {
           id: props.music.content,
-          modelType: 'practise',
           Authorization: Authorization
         }
       });
@@ -123,7 +120,8 @@ export default defineComponent({
             orientation: 0,
             isHideTitle: true,
             statusBarTextColor: false,
-            isOpenLight: true
+            isOpenLight: true,
+            c_orientation: 0
           }
         },
         () => {