Browse Source

Revert "Merge branch 'iteration-20240327' into iteration-20240403-apply"

This reverts commit 06dd574d37228a2b0a6d9d8f18012f3b913926e4, reversing
changes made to 813fd58a8ec7dce38744a519a62ba22c5c73f19d.
lex 1 year ago
parent
commit
033f62db7b
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/views/co-ai/index.tsx

+ 3 - 7
src/views/co-ai/index.tsx

@@ -79,7 +79,7 @@ export default defineComponent({
       /** 音乐Index */
       musicIndex: 0,
       /** 显示哪种曲谱 */
-      showMusicImg: 'staff' as 'staff' | 'first' | 'fixed',
+      showMusicImg: 'first' as 'staff' | 'first' | 'fixed',
       popoverShow: false,
       popoverMusicShow: false,
       /** 教材列表 */
@@ -281,7 +281,6 @@ export default defineComponent({
     const musicIframeLoad = () => {
       const token = storage.get(ACCESS_TOKEN);
       const details = data.musics[data.musicIndex];
-      // 如果在配置里面匹配不到,则默认显示五线谱
       const musicRenderType =
         data.showMusicImg === 'first'
           ? 'firstTone'
@@ -289,11 +288,10 @@ export default defineComponent({
           ? 'fixedTone'
           : data.showMusicImg === 'staff'
           ? 'staff'
-          : 'staff';
+          : 'firstTone';
       const origin = /(localhost|192)/.test(location.host)
         ? 'https://test.lexiaoya.cn'
         : location.origin;
-      // data.iframeSrc = `${origin}/instrument/?id=${details.id}&modelType=practise&modeType=json&Authorization=${token}&isPreView=true&part-index=${data.selectMusicInstrumentIndex}&musicRenderType=${musicRenderType}`;
       data.iframeSrc = `${vaildMusicScoreUrl()}/instrument/?id=${
         details.id
       }&modelType=practise&modeType=json&Authorization=${token}&isPreView=true&part-index=${
@@ -416,7 +414,6 @@ export default defineComponent({
       const canSelectTracks = multiTracksSelection
         ? multiTracksSelection?.split(',')
         : [];
-      console.log(canSelectTracks, partListNames);
       const arr = partListNames
         .map((item: any, index: number) => {
           // 该声轨能否被选
@@ -445,8 +442,7 @@ export default defineComponent({
         .replace(/[0-9]+/g, '')
         .replace(/\s/g, '')
         .toLocaleLowerCase();
-      // 如果在配置里面匹配不到,则默认显示五线谱
-      let musicRenderType: 'staff' | 'first' | 'fixed' = 'staff';
+      let musicRenderType: 'staff' | 'first' | 'fixed' = 'first';
       let canTrans = true;
       data.musics[data.musicIndex]?.musicalInstruments.forEach((item: any) => {
         if (item.code.toLocaleLowerCase() === track) {