瀏覽代碼

feat: 打击乐多分轨行数优化

TIANYONG 1 年之前
父節點
當前提交
695d965c93
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. 2 2
      src/subpages/colexiu/popups/setting/sett.tsx
  2. 4 1
      src/subpages/colexiu/uses/use-app.ts

+ 2 - 2
src/subpages/colexiu/popups/setting/sett.tsx

@@ -145,7 +145,7 @@ export default defineComponent({
                 <Switch v-model={SettingState.sett.eyeProtection} {...switchProps}></Switch>
               </Cell>
               {/** 大雅金唐曲目自定义小节数 */}
-              {/* {
+              {
                 detailState.isDaYaCategory && 
                 <>
                   <Cell center border={false} title="自定义每行小节数">
@@ -168,7 +168,7 @@ export default defineComponent({
                     </div>
                   }
                 </>
-              } */}
+              }
 
               <Divider />
               {/* <Cell center border={false} title="乐谱大小">

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