Browse Source

修改参数

lex-xin 4 months ago
parent
commit
02dd51371c

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

@@ -323,7 +323,7 @@ export default defineComponent({
     const gotoAccomany = (e: any) => {
       // 去云练习完整版
       e.stopPropagation();
-      const Authorization = sessionStorage.getItem('Authorization') || '';
+      // const Authorization = sessionStorage.getItem('Authorization') || '';
       // const origin = /(localhost|192)/.test(location.host)
       //   ? 'https://test.gym.lexiaoya.cn'
       //   : location.origin;
@@ -336,7 +336,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',

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

@@ -1115,12 +1115,12 @@ export default defineComponent({
                           onClick={(e: any) => {
                             // 去云练习完整版
                             e.stopPropagation();
-                            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: {