Browse Source

fix: #9908 bug修复

TIANYONG 1 năm trước cách đây
mục cha
commit
7c096d5b6f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);
 };