Browse Source

feat: 多分轨渲染,简谱渲染了多个拍号问题修复

TIANYONG 1 month ago
parent
commit
b1c6d505e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/state.ts

+ 1 - 1
src/state.ts

@@ -1718,7 +1718,7 @@ const setState = (data: any, index: number) => {
   }
   // 多分轨合并显示的曲子,有可能没有原音文件,minCombineNum的最小值至少为2
   const minCombineNum = data.musicSheetSoundList?.length ? Math.max(data.musicSheetSoundList?.length, 2) : 2;
-  setCustom(state.isCombineRender ? data.musicSheetSoundList?.length : 0);
+  setCustom(state.isCombineRender ? minCombineNum : 0);
   // 解析扩展字段
   if (data.extConfigJson) {
     try {