|
@@ -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 = "";
|