Browse Source

feat: 多轨渲染兼容common

TIANYONG 4 months ago
parent
commit
6d494c24b3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      osmd-extended
  2. 1 1
      src/view/music-score/index.tsx

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 665271caca8c4f556b1204461606435385acb7c9
+Subproject commit 8953e8a56f4bf658378f938d561f625ad0f23a42

+ 1 - 1
src/view/music-score/index.tsx

@@ -170,7 +170,7 @@ export default defineComponent({
 			// 传入自定义的小节循环顺序
 			osmd.EngravingRules.DYCustomRepeatStr = state.extConfigJson.customRepeatStr?.trim()?.replace(/,/g, ',') || '';
 			if (state.combinePartIndexs.length > 1) {
-				(window as any).DYcombinePartIndexs = state.combinePartIndexs;
+				(window as any).DYcombinePartIndexs = (window as any).HasCommonTrack ? state.combinePartIndexs.map(item => item+1) : state.combinePartIndexs;
 			} else {
 				(window as any).DYcombinePartIndexs = null;
 			}