|
@@ -1434,12 +1434,12 @@ function initMusicSource(data: any, tracks: string[], partIndex: number) {
|
|
|
// 总谱渲染
|
|
|
state.isCombineRender = true
|
|
|
state.partListNames = tracks
|
|
|
- // 总谱演唱模式是 范唱
|
|
|
+ // 总谱演唱模式是 范唱,取scoreAudioFileUrl字段
|
|
|
fanSongObj = musicSheetAccompanimentList.find((item: any) => {
|
|
|
return item.audioPlayType === "SING"
|
|
|
})
|
|
|
- // 先取scoreAudioFileUrl的值
|
|
|
- if(fanSongObj?.scoreAudioFileUrl){
|
|
|
+ // 先取scoreAudioFileUrl的值 如果 没有就是空
|
|
|
+ if(fanSongObj){
|
|
|
fanSongObj.audioFileUrl = fanSongObj.scoreAudioFileUrl
|
|
|
fanSongObj.audioBeatMixUrl = fanSongObj.scoreAudioBeatMixUrl
|
|
|
}
|
|
@@ -1447,11 +1447,6 @@ function initMusicSource(data: any, tracks: string[], partIndex: number) {
|
|
|
accompanyObj = musicSheetAccompanimentList.find((item: any) => {
|
|
|
return item.audioPlayType === "PLAY"
|
|
|
})
|
|
|
- // 先取scoreAudioFileUrl的值
|
|
|
- if(accompanyObj?.scoreAudioFileUrl){
|
|
|
- accompanyObj.audioFileUrl = accompanyObj.scoreAudioFileUrl
|
|
|
- accompanyObj.audioBeatMixUrl = accompanyObj.scoreAudioBeatMixUrl
|
|
|
- }
|
|
|
track = "总谱"
|
|
|
index = 999
|
|
|
musicalInstrumentId = ''
|