浏览代码

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);
 };