|
@@ -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)
|
|
|
}
|