SanHQin 10 ヶ月 前
コミット
5051c90fdc

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

@@ -710,11 +710,14 @@ export default {
 				let flag = true;
 				this.recordedForm.textList = [];
 				this.recordedForm.timeDuration = 0;
+				this.recordedForm.startTime = 1;
+				this.recordedForm.endTime = 0;
 				// 录音开始
 				iiframe.contentWindow.onRecognizedResult = (e) => {
 					// let e = {
 					// 	privText:"测试测试"
 					// }
+					this.recordedForm.endTime = this.recordedForm.timeDuration;
 					if (flag) {
 						// this.controlsStatus = 1;
 						this.showIndexPage = false;
@@ -739,7 +742,7 @@ export default {
 						endTime: this.updateRecordedTime({duration:this.recordedForm.endTime}),
 						time: this.updateRecordedTime({duration:(this.recordedForm.endTime-this.recordedForm.startTime)}),
 					});
-					this.recordedForm.startTime = this.recordedForm.timeDuration;
+					this.recordedForm.startTime = this.recordedForm.timeDuration+1;
 					this.transcriptionData.content += privText;
 
 					let _result = `
@@ -866,7 +869,7 @@ export default {
 				this.$message.success("已开始录音")
 				this.recordedForm.timer = setInterval(() => {
 					this.recordedForm.timeDuration+=1,
-					this.recordedForm.endTime = this.recordedForm.timeDuration;
+					
 					this.recordedForm.time = this.updateRecordedTime({duration:this.recordedForm.timeDuration});
 				}, 1000);
 			}