lex 9 mēneši atpakaļ
vecāks
revīzija
32706f4c96

+ 7 - 1
src/views/attend-class/component/musicScore.tsx

@@ -16,6 +16,9 @@ export default defineComponent({
     activeModel: {
       type: Boolean
     },
+    instrumentId: {
+      type: String
+    },
     /** 当前是否为选中状态 */
     activeStatus: {
       type: Boolean
@@ -45,9 +48,12 @@ export default defineComponent({
     //   ? 'https://test.lexiaoya.cn/instrument'
     //   : // 'http://localhost:3000/instrument.html'
     //     location.origin + '/instrument';
-    const src = `${vaildMusicScoreUrl()}/instrument/?v=${+new Date()}&showGuide=true&showWebGuide=false&platform=pc&zoom=1.2&modelType=practise&id=${
+    let src = `${vaildMusicScoreUrl()}/instrument/?v=${+new Date()}&showGuide=true&showWebGuide=false&platform=pc&zoom=1.2&modelType=practise&id=${
       props.music.content
     }&Authorization=${userStore.getToken}&imagePos=${props.imagePos}`;
+    if (props.instrumentId) {
+      src += `&instrumentId=${props.instrumentId}`;
+    }
     const checkView = () => {
       fetch(src)
         .then(() => {

+ 1 - 0
src/views/attend-class/index.tsx

@@ -1873,6 +1873,7 @@ export default defineComponent({
                       ) : (
                         <MusicScore
                           activeModel={activeData.model}
+                          instrumentId={data.instrumentId}
                           activeStatus={popupData.activeIndex === mIndex}
                           data-vid={m.id}
                           music={m}