SanHQin 10 months ago
parent
commit
f9f050f433

+ 2 - 2
src/components/classRoomHelper/component/dialogArea.vue

@@ -469,7 +469,8 @@ export default {
 			this.isTalk = true;
       iiframe.contentWindow.onRecognizedResult = e => {
         let _msg = e.privText;
-        if (!_msg) this.text += _msg;
+				console.log(_msg)
+        if (_msg) this.text += _msg;
       };
     },
     stopTalk() {
@@ -1158,7 +1159,6 @@ export default {
             }
           );
         } else {
-          this.aiIsTalk = false;
           try {
 						_talkTextIiframe2.contentWindow.closesynthesizer();
 					} catch (error) {

+ 2 - 2
src/components/classRoomHelper/component/searchArea.vue

@@ -828,7 +828,8 @@ export default {
 			this.isTalk = true;
       iiframe.contentWindow.onRecognizedResult = e => {
         let _msg = e.privText;
-        if (!_msg) this.text += _msg;
+				console.log(_msg)
+        if (_msg) this.text += _msg;
       };
     },
     stopTalk() {
@@ -2402,7 +2403,6 @@ ${_wordData}
 						}
         	);
         } else {
-					this.aiIsTalk = false;
           try {
 						_talkTextIiframe2.contentWindow.closesynthesizer();
 					} catch (error) {

+ 2 - 2
src/components/classRoomHelper/component/taskArea.vue

@@ -484,7 +484,8 @@ export default {
 			this.isTalk = true;
       iiframe.contentWindow.onRecognizedResult = e => {
         let _msg = e.privText;
-        if (!_msg) this.text += _msg;
+				console.log(_msg)
+        if (_msg) this.text += _msg;
       };
     },
     stopTalk() {
@@ -1312,7 +1313,6 @@ Instruction: Based on the context, follow "Format example", write content.
             }
           );
         } else {
-          this.aiIsTalk = false;
           try {
 						_talkTextIiframe2.contentWindow.closesynthesizer();
 					} catch (error) {