Sfoglia il codice sorgente

Merge branch 'iteration-20241007-tag' into online

lex-xin 7 mesi fa
parent
commit
11f4ed4f19
2 ha cambiato i file con 15 aggiunte e 2 eliminazioni
  1. 8 1
      src/views/xiaoku-list/detail.tsx
  2. 7 1
      src/views/xiaoku-list/index.tsx

+ 8 - 1
src/views/xiaoku-list/detail.tsx

@@ -207,7 +207,14 @@ export default defineComponent({
     // 查看详情
     const onDetail = (item: any) => {
       // 默认进页面显示对应的曲谱
-      let lineType = item.scoreType || 'FIRST';
+      // let lineType = item.scoreType || 'FIRST';
+      const lineType = item.scoreType === 'FIRST'
+        ? 'firstTone'
+        : item.scoreType === 'JIAN'
+        ? 'fixedTone'
+        : item.scoreType === 'STAVE'
+        ? 'staff'
+        : 'firstTone';
       let src = `${vaildMusicScoreUrl()}/instrument?v=${+new Date()}&platform=pc&id=${
         item.id
       }&Authorization=${

+ 7 - 1
src/views/xiaoku-list/index.tsx

@@ -164,7 +164,13 @@ export default defineComponent({
     // 查看详情
     const onDetail = (item: any) => {
       // 默认进页面显示对应的曲谱
-      let lineType = item.scoreType || 'FIRST';
+      const lineType = item.scoreType === 'FIRST'
+        ? 'firstTone'
+        : item.scoreType === 'JIAN'
+        ? 'fixedTone'
+        : item.scoreType === 'STAVE'
+        ? 'staff'
+        : 'firstTone';
       let src = `${vaildMusicScoreUrl()}/instrument?v=${+new Date()}&platform=pc&id=${
         item.id
       }&Authorization=${