Sfoglia il codice sorgente

feat: 评测交互优化

TIANYONG 1 anno fa
parent
commit
9fa85ab991
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/view/evaluating/index.tsx

+ 2 - 2
src/view/evaluating/index.tsx

@@ -357,7 +357,6 @@ const recordStartTimePoint = async (res?: IPostMessage) => {
 export const handleEndEvaluat = (isComplete = false) => {
 	// 没有开始评测 , 不是评测模式 , 不评分
 	if (!evaluatingData.startBegin || state.modeType !== "evaluating") return;
-	evaluatingData.startBegin = false;
 	// 结束录音
 	// api_stopRecording();
 	// 结束评测
@@ -365,6 +364,7 @@ export const handleEndEvaluat = (isComplete = false) => {
 		musicScoreId: state.examSongId,
 	});
 	setTimeout(() => {
+		evaluatingData.startBegin = false;
 		showLoadingToast({
 			message: "评分中",
 			duration: 0,
@@ -393,7 +393,7 @@ export const handleEndBegin = () => {
  */
 export const handleCancelEvaluat = () => {
 	evaluatingData.evaluatings = {};
-	evaluatingData.startBegin = true;
+	evaluatingData.startBegin = false;
 	// 关闭提示
 	closeToast();
 	// 取消记录