Jelajahi Sumber

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

TIANYONG 6 bulan lalu
induk
melakukan
698af45ce9
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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);
 }
 
 /**