Browse Source

生成节拍器 逻辑修改

黄琪勇 1 month ago
parent
commit
b903ebfeb5
1 changed files with 2 additions and 11 deletions
  1. 2 11
      src/views/music-library/music-sheet/modal/music-operationV2.tsx

+ 2 - 11
src/views/music-library/music-sheet/modal/music-operationV2.tsx

@@ -631,13 +631,6 @@ export default defineComponent({
             }
           }
 
-          // 生成节拍器为空时清空所有生成过的数据
-          if(!forms.isMixBeat) {
-            musicSheetSoundList.forEach((item: any) => {
-              item.audioBeatMixUrl = null
-            })
-          }
-
           const obj = {
             musicCategoryId: forms.musicCategoryId,
             musicCover: forms.musicCover,
@@ -697,7 +690,8 @@ export default defineComponent({
           } else if (props.type === 'edit') {
             resData = await musicSheetSave({ ...obj, id: props.data.id })
           }
-          if (state.isBeatTime && forms.isMixBeat) {
+          //if (state.isBeatTime && forms.isMixBeat) {
+          if (forms.isMixBeat) {
             beatTimeData.beatTimeOpen = true
             beatTimeData.musicId = resData.data
             state.showUseProjectId = resData.data
@@ -1286,7 +1280,6 @@ export default defineComponent({
               musicalInstrumentId: item.id + '',
               musicalInstrumentName: item.name,
               audioFileUrl: null,
-              audioBeatMixUrl: null,
               audioPlayType: 'PLAY'
             })
           })
@@ -1445,8 +1438,6 @@ export default defineComponent({
                   ) {
                     forms.musicSheetSoundList_YZ[j].audioFileUrl =
                       state.musicSheetSoundList[i].audioFileUrl
-                      forms.musicSheetSoundList_YZ[j].audioBeatMixUrl =
-                      state.musicSheetSoundList[i].audioBeatMixUrl
                   }
                 }
               }