Browse Source

fix: 跟练结束清除状态,并回到第一小节

TIANYONG 6 months ago
parent
commit
698af45ce9
1 changed files with 4 additions and 1 deletions
  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);
 }
 
 /**