소스 검색

fix: #9908 bug修复

TIANYONG 1 년 전
부모
커밋
7c096d5b6f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/state.ts

+ 3 - 0
src/state.ts

@@ -664,6 +664,9 @@ export const resetPlaybackToStart = () => {
   if (state.sectionStatus && state.section.length === 2) {
     state.section = formateSelectMearure(state.section);
     return;
+  } else {
+    // 非选段状态,重播需要重置当前选中的小节为第一个小节
+    metronomeData.activeMetro = metronomeData.metroMeasure[0]?.[0] || {};
   }
   skipNotePlay(0, true);
 };