Browse Source

Merge branch 'gyt-feature-tianyong' into gyt-test

TIANYONG 1 year ago
parent
commit
9186c6cd01
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/subpages/colexiu/uses/use-app.ts

+ 4 - 1
src/subpages/colexiu/uses/use-app.ts

@@ -51,7 +51,10 @@ export const useXml = async (url: string, detail: MusicSheelDetail) => {
       })
       // 多种乐器分轨合并显示
       if (state.isCombineRender) {
-        setGlobalData('wrapNum', 4)
+        const customNoduleInfo = JSON.parse(localStorage.getItem('customNoduleInfo')) || []
+        const matchMusic = customNoduleInfo.find((n: any) => n.id === id)
+        const xjNum = matchMusic ? matchMusic.customNum : 4
+        setGlobalData('wrapNum', xjNum)
       } else {
         score.value = onlyVisible(score.value, partIndex)
       }