liushengqiang 2 years ago
parent
commit
7427167c5b
2 changed files with 4 additions and 5 deletions
  1. 4 1
      src/page-orchestra/evaluat-model/index.tsx
  2. 0 4
      src/view/evaluating/index.tsx

+ 4 - 1
src/page-orchestra/evaluat-model/index.tsx

@@ -156,7 +156,10 @@ export default defineComponent({
 				// evaluationCriteria: getEvaluationCriteria(),
 			};
 			await connectWebsocket(content);
-			state.playSource = "music";
+			// 切换为伴奏
+			if (state.accompany) {
+				state.playSource = 'background'
+			}
 			console.log("连接成功");
 		};
 

+ 0 - 4
src/view/evaluating/index.tsx

@@ -136,7 +136,6 @@ export const handlePerformDetection = async () => {
 	if (evaluatingData.checkStep === 0) {
 		// 检测耳机
 		const erji = await checkUseEarphone();
-		console.log("🚀 ~ erji:", erji)
 		evaluatingData.checkStep = 1;
 		if (erji) {
 			handlePerformDetection();
@@ -360,9 +359,6 @@ export default defineComponent({
 			state.setting.displayFingering = false;
 			// 切换为伴奏
 			record_old_data.play_mode = state.playSource
-			if (state.accompany) {
-				state.playSource = 'background'
-			}
 		};
 		/** 还原状态 */
 		const handle_reduction = () => {