|
@@ -1526,7 +1526,11 @@ function xmlToTracks(xmlString: string) {
|
|
|
// 设置音源
|
|
|
function initMusicSource(data: any, tracks: string[], partIndex: number, workRecordInstrumentId?: string) {
|
|
|
let track:string,index:number, musicalInstrumentId: string
|
|
|
- const instrumentId = workRecordInstrumentId || query.instrumentId || storeData.user?.instrumentId
|
|
|
+ let instrumentId = workRecordInstrumentId || query.instrumentId || storeData.user?.instrumentId
|
|
|
+ // 打击乐特殊处理 当曲目乐器为2266(打击乐(键盘))和2267(小军鼓)时候,从打击乐分类下 进入的时候
|
|
|
+ if(["2266", "2267"].includes(data.musicalInstrumentIds)){
|
|
|
+ instrumentId = data.musicalInstrumentIds
|
|
|
+ }
|
|
|
state.instrumentId = instrumentId;
|
|
|
let { musicSheetType, isAllSubject, musicSheetSoundList, musicSheetAccompanimentList } = data
|
|
|
musicSheetSoundList || (musicSheetSoundList = [])
|