SanHQin 1 year ago
parent
commit
3aa8325ed5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/pages/classroomObservation/components/chatArea.vue

+ 5 - 1
src/components/pages/classroomObservation/components/chatArea.vue

@@ -691,6 +691,9 @@ export default {
 					});
 			} else if (this.controlsStatus != 1 && this.recordedForm.status == 0) {
 				let iiframe = this.$refs["iiframe"];
+				iiframe.contentWindow.window.document.getElementById(
+					"languageOptions"
+				).selectedIndex = 2;
 				iiframe.contentWindow.testdoContinuousPronunciationAssessment();
 				this.controlsStatus = 1;
 				this.recordedForm.status = 1;
@@ -826,7 +829,8 @@ export default {
 				let blob = new Blob(this.recordedForm.audioBlob,{
 					type: 'audio/mp3',
 				})
-				this.uploadFile(blob,{changeText:false,flag:true})
+				let file = new File([blob],'recordedFile',{type:"text/plain"})
+				this.uploadFile(file,{changeText:false,flag:true})
 				iiframe.contentWindow.onSessionStopped = null;
 			}