TIANYONG hace 1 año
padre
commit
7c096d5b6f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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);
 };