Browse Source

Merge branch 'iteration-20241016-musicscoreUrl' into jenkins

lex-xin 1 year ago
parent
commit
e3ee0dde85

+ 2 - 1
src/views/coursewarePlay/component/video-play.tsx

@@ -331,6 +331,7 @@ export default defineComponent({
       }
 
       const Authorization = sessionStorage.getItem('Authorization') || '';
+      // const Authorization = sessionStorage.getItem('Authorization') || '';
       // const origin = /(localhost|192)/.test(location.host)
       //   ? 'https://test.gym.lexiaoya.cn'
       //   : location.origin;
@@ -343,7 +344,7 @@ export default defineComponent({
     const origin = /(localhost|192)/.test(location.host)
           ? 'https://test.gym.lexiaoya.cn/'
           : location.origin;
-    const src = `${origin}/gym-music-score/?id=${item.value.materialMusicId}&Authorization=${Authorization}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
+    const src = `${origin}/gym-music-score/?id=${item.value.materialMusicId}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
 
       postMessage({
         api: 'openAccompanyWebView',

+ 5 - 3
src/views/coursewarePlay/index.tsx

@@ -1066,12 +1066,14 @@ export default defineComponent({
                               return
                             }
 
-                            const Authorization =
-                              sessionStorage.getItem('Authorization') || '';
+                            // const Authorization =
+                            //   sessionStorage.getItem('Authorization') || '';
+                            // const Authorization =
+                            //   sessionStorage.getItem('Authorization') || '';
                             const origin = /(localhost|192)/.test(location.host)
                               ? 'https://test.gym.lexiaoya.cn/'
                               : location.origin;
-                            const src = `${origin}/gym-music-score/?id=${m.materialMusicId}&Authorization=${Authorization}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
+                            const src = `${origin}/gym-music-score/?id=${m.materialMusicId}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
                             postMessage({
                               api: 'openAccompanyWebView',
                               content: {