TIANYONG 4 mēneši atpakaļ
vecāks
revīzija
ef091f43cc
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 7 2
      src/view/follow-practice/index.tsx

+ 7 - 2
src/view/follow-practice/index.tsx

@@ -183,7 +183,10 @@ const clearRightNoteColor = () => {
  */
 const autoEndFollow = () => {
 	if (followData.index >= state.times.length) {
-		handleFollowEnd()
+		setTimeout(() => {
+			handleFollowEnd()
+		}, 1500);
+		
 		return
 	}
 	let nextIndex = followData.index + 1;
@@ -191,7 +194,9 @@ const autoEndFollow = () => {
 	// 后面的音符是否都是休止音符
 	const isAllRest = !rightTimes.some((item: any) => item.frequency > 1);
 	if (isAllRest && state.times[followData.index].frequency < 1) {
-		handleFollowEnd()
+		setTimeout(() => {
+			handleFollowEnd()
+		}, 1500);
 		return
 	}
 	clearRightNoteColor();