Explorar o código

fix: 从0开始的小节,评测合并休止小节数字问题修复

TIANYONG hai 6 meses
pai
achega
27af7fb339
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/page-instrument/evaluat-model/index.tsx

+ 1 - 1
src/page-instrument/evaluat-model/index.tsx

@@ -446,7 +446,7 @@ export default defineComponent({
       // 非选段状态,从头开始评测,重置速度
       if (!state.sectionStatus && state.section.length === 0) {
         state.activeNoteIndex = 0;
-        state.activeMeasureIndex = 1;
+        state.activeMeasureIndex = state.firstMeasureNumber === 0 ? 0 : 1;
         state.speed = state.times[0].measureSpeed * state.basePlayRate
       }
       initSetPlayRate();