Преглед на файлове

fix: 跟练完清除音符状态问题修改

TIANYONG преди 1 година
родител
ревизия
99bce658e6
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      src/subpages/colexiu/popups/follow/index.tsx

+ 4 - 1
src/subpages/colexiu/popups/follow/index.tsx

@@ -126,7 +126,10 @@ const handleEnd = () => {
   setStepIndex(state.osmd, 0)
   // state.osmd.cursor.reset()
   getNoteIndex()
-  onClear()
+  refreshView()
+  setTimeout(() => {
+    onClear()
+  }, 0);
 }
 
 /**