SanHQin 11 months ago
parent
commit
c91c57086d
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/components/classRoomHelper/component/languageAssistant.vue

+ 6 - 3
src/components/classRoomHelper/component/languageAssistant.vue

@@ -148,7 +148,7 @@
 					</span>
 				</el-tooltip>
 			</div>
-			<div class="openMessage">
+			<div class="openMessage" v-if="show">
 				<el-checkbox v-model="openMessage">开启字幕</el-checkbox>
 			</div>
 		</div>
@@ -371,6 +371,7 @@ export default {
 			};
 		},
 		stopRecord() {
+			this.$parent.changeItemType(1)
 			this.show = false;
 			this.showIndex = 2;
 			let iiframe = this.$refs["iiframe"];
@@ -391,7 +392,7 @@ export default {
 				if (this.talkLoading) {
 					this.$refs.iiframe2.contentWindow.closesynthesizer();
 				}
-				this.$parent.changeItemType(1)
+				
 				this.userText = "";
 				this.aiText = "";
 			};
@@ -577,7 +578,9 @@ export default {
 		},
 	},
 	mounted() {
-		this.recordStart()
+		this.$nextTick(()=>{
+			this.recordStart()
+		})
 	},
 };
 </script>