Sfoglia il codice sorgente

默认多行谱,评测模式支持单行谱和多行谱切换

黄琪勇 10 mesi fa
parent
commit
e8770fc923

+ 4 - 4
src/page-instrument/header-top/index.tsx

@@ -77,10 +77,10 @@ export const headTopData = reactive({
         return;
       }
       // 评测模式,只有一行谱模式
-      if (!state.isSingleLine) {
-        state.isSingleLine = true;
-        refreshMusicSvg();
-      }
+      // if (!state.isSingleLine) {
+      //   state.isSingleLine = true;
+      //   refreshMusicSvg();
+      // }
       smoothAnimationState.isShow.value = false; // 隐藏旋律线
       state.playIngSpeed = state.originSpeed;
       handleStartEvaluat();

+ 1 - 1
src/page-instrument/header-top/settting/index.tsx

@@ -202,7 +202,7 @@ export default defineComponent({
                         }
                         {/** 练习模式才有单行/多行谱切换功能,跟练、评测只有单行谱模式 */}
                         {
-                            state.modeType === 'practise' ? 
+                            ["practise", "evaluating"].includes(state.modeType) ? 
                             <div class={styles.cellBox}>
                                 <div class={styles.tit}>切换谱面</div>
                                 <div class={styles.radioBox}>

+ 1 - 1
src/page-instrument/view-detail/index.tsx

@@ -170,7 +170,7 @@ export default defineComponent({
         state.zoom = 0.7
       }
       // 只有总控平台和预览 默认是多行谱
-      (state.isPreView || query.isCbs) && (state.isSingleLine = false)
+      //(state.isPreView || query.isCbs) && (state.isSingleLine = false)
       // Promise.all([sysMusicScoreAccompanimentQueryPage(id)]).then((values) => {
       //   getMusicInfo(values[0]);
       // });

+ 1 - 1
src/state.ts

@@ -512,7 +512,7 @@ const state = reactive({
   /** 音频文件是否加载完成 */
   audioDone: false,
   /** 是否为单行谱渲染模式 */
-  isSingleLine: true,
+  isSingleLine: false,
   /** 是否是evxml */
   isEvxml: false,
   noTimes: [] as any,