|
@@ -1349,7 +1349,7 @@ let offsetTop = 0;
|
|
|
*/
|
|
|
export const scrollViewNote = (resetTop?: boolean) => {
|
|
|
// const cursorElement = document.getElementById("cursorImg-0")!;
|
|
|
- if (state.isSingleLine || state.activeMeasureIndex <= 1) {
|
|
|
+ if (state.isSingleLine) {
|
|
|
return;
|
|
|
}
|
|
|
const noteId = state.times[state.activeNoteIndex].id;
|
|
@@ -1472,7 +1472,7 @@ const getMusicInfo = async (res: any) => {
|
|
|
}
|
|
|
}
|
|
|
// 设置音源 track 为当前的声轨 index为当前的
|
|
|
- const { track, index, musicalInstrumentId } = state.isSimplePage ? { track:tracks[0], index:0, musicalInstrumentId: '' } : initMusicSource(res.data, tracks, partIndex, workRecordInstrumentId)
|
|
|
+ const { track, index, musicalInstrumentId } = state.isSimplePage ? { track:tracks[0], index: state.partIndex, musicalInstrumentId: '' } : initMusicSource(res.data, tracks, partIndex, workRecordInstrumentId)
|
|
|
// 这里返回的track可能和实际的对不上,所以重新筛选一下
|
|
|
const realTrack = musicalInstrumentId && res.data?.musicalInstruments?.length ? res.data?.musicalInstruments.find((item: any) => item?.id == musicalInstrumentId)?.code?.split(',')?.[0] : '';
|
|
|
const musicInfo = {
|