浏览代码

feat: 切换模式,清除选段

TIANYONG 1 年之前
父节点
当前提交
a44836444e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/state.ts

+ 3 - 0
src/state.ts

@@ -736,6 +736,9 @@ export const isRhythmicExercises = () => {
 
 /** 重置状态 */
 export const handleRessetState = () => {
+  // 切换模式,清除选段
+  skipNotePlay(0, true);
+  clearSelection();
   if (state.modeType === "evaluating") {
     handleStartEvaluat();
   } else if (state.modeType === "practise") {