浏览代码

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

TIANYONG 1 年之前
父节点
当前提交
9186c6cd01
共有 1 个文件被更改,包括 4 次插入1 次删除
  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)
       }