Browse Source

默认一行谱,总控平台和预览是多行谱

黄琪勇 11 months ago
parent
commit
ba03b88592
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/page-instrument/view-detail/index.tsx
  2. 1 1
      src/state.ts

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

@@ -143,7 +143,8 @@ export default defineComponent({
       if (state.isPreView) {
         state.zoom = 0.65
       }
-      state.isSingleLine = query.isSingleLine === "true" ? true : false; // 一行谱模式
+      // 只有总控平台和预览 默认是多行谱
+      (state.isPreView || query.isCbs) && (state.isSingleLine = false)
       // Promise.all([sysMusicScoreAccompanimentQueryPage(id)]).then((values) => {
       //   getMusicInfo(values[0]);
       // });

+ 1 - 1
src/state.ts

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