SanHQin 11 months ago
parent
commit
540d451dd7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/classRoomHelper/component/levitatedSphere.vue

+ 3 - 2
src/components/classRoomHelper/component/levitatedSphere.vue

@@ -115,7 +115,7 @@ export default {
         } else if (this.show == true) {
           if (this.showTextIndex == 2 || this.chatLoading || this.talkLoading) {
             return console.log("组织语言中");
-					}else if(_msg.indexOf('可可同学') && _msg.indexOf("停止")){
+					}else if(_msg.indexOf('可可同学')!=-1 && _msg.indexOf("停止")!=-1){
 						this.stopTalk();
           } else {
             this.showTextIndex = 1;
@@ -129,7 +129,8 @@ export default {
             this.timer = setTimeout(() => {
               if (this.userText.indexOf("关闭语音助手") != -1) {
                 // return setTimeout(()=>{
-                (this.show = false), (this.showTextIndex = 3);
+                this.show = false;
+								this.showTextIndex = 3;
                 this.aiStatus = 2;
                 this.aiText = "";
                 this.userText = "";