Просмотр исходного кода

Merge branch 'iteration-20240912-pdf' into test-online

lex-xin 1 месяц назад
Родитель
Сommit
3b1a16296e
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      src/views/music-library/music-sheet/modal/music-operationV2.tsx

+ 10 - 0
src/views/music-library/music-sheet/modal/music-operationV2.tsx

@@ -631,6 +631,13 @@ export default defineComponent({
             }
           }
 
+          // 生成节拍器为空时清空所有生成过的数据
+          if(!forms.isMixBeat) {
+            musicSheetSoundList.forEach((item: any) => {
+              item.audioBeatMixUrl = null
+            })
+          }
+
           const obj = {
             musicCategoryId: forms.musicCategoryId,
             musicCover: forms.musicCover,
@@ -1279,6 +1286,7 @@ export default defineComponent({
               musicalInstrumentId: item.id + '',
               musicalInstrumentName: item.name,
               audioFileUrl: null,
+              audioBeatMixUrl: null,
               audioPlayType: 'PLAY'
             })
           })
@@ -1437,6 +1445,8 @@ export default defineComponent({
                   ) {
                     forms.musicSheetSoundList_YZ[j].audioFileUrl =
                       state.musicSheetSoundList[i].audioFileUrl
+                      forms.musicSheetSoundList_YZ[j].audioBeatMixUrl =
+                      state.musicSheetSoundList[i].audioBeatMixUrl
                   }
                 }
               }