瀏覽代碼

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

TIANYONG 6 月之前
父節點
當前提交
698af45ce9
共有 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);
 }
 
 /**