Explorar o código

Update musicScore.tsx

lex hai 1 ano
pai
achega
a47aba497c
Modificáronse 1 ficheiros con 7 adicións e 8 borrados
  1. 7 8
      src/views/coursewarePlay/component/musicScore.tsx

+ 7 - 8
src/views/coursewarePlay/component/musicScore.tsx

@@ -39,17 +39,16 @@ export default defineComponent({
     const renderSuccess = ref(false);
     const Authorization = sessionStorage.getItem('Authorization') || '';
     const origin = /(localhost|192)/.test(location.host)
-      ? 'https://test.lexiaoya.cn'
+      ? 'https://test.gym.lexiaoya.cn'
       : location.origin;
-    const query = qs.stringify({
-      id: props.music.content,
-      modelType: 'practice',
-      headerHeight: 32,
-      Authorization: Authorization
-    });
+
     const path =
       state.platformType === 'TEACHER' ? '/accompany-teacher/' : '/accompany/';
-    const src = `${origin}${path}?` + query;
+    const src =
+      `${origin}${path}?Authorization=${Authorization}` +
+      '#/detail/' +
+      props.music.content +
+      '?part-index=0';
     const checkView = () => {
       fetch(src)
         .then(() => {