Browse Source

feat: endEvaluating 增加500ms延迟

TIANYONG 1 year ago
parent
commit
5d1fb04c18
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/view/evaluating/index.tsx

+ 5 - 3
src/view/evaluating/index.tsx

@@ -341,9 +341,11 @@ export const handleEndEvaluat = (isComplete = false) => {
 	// 结束录音
 	// 结束录音
 	api_stopRecording();
 	api_stopRecording();
 	// 结束评测
 	// 结束评测
-	endEvaluating({
-		musicScoreId: state.examSongId,
-	});
+	setTimeout(() => {
+		endEvaluating({
+			musicScoreId: state.examSongId,
+		});
+	}, 500);
 	showLoadingToast({
 	showLoadingToast({
 		message: "评分中",
 		message: "评分中",
 		duration: 0,
 		duration: 0,