Procházet zdrojové kódy

feat: 切换模式,清除选段

TIANYONG před 1 rokem
rodič
revize
a44836444e
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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") {