|
|
@@ -652,15 +652,18 @@ export default {
|
|
|
success: (res) => {
|
|
|
this.shows = false;
|
|
|
this.show = false;
|
|
|
+ this.toastLoading();
|
|
|
this.aiDialogueCommon({ type: 2, content: res.serverId }).then((response) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ // 返回的数据包含我的录音和AI解析,先显示我的录音在显示AI解析
|
|
|
+ // 我的录音
|
|
|
this.Ggreet.push({
|
|
|
- chatRecordFile:
|
|
|
- 'https://cdn-svs-test.nipponpaint.com.cn/%E5%90%B4%E5%BA%B7-20240918152244.amr?Expires=2042176973&OSSAccessKeyId=LTAI5tG1DTJFA16BHkzHVxjz&Signature=BvwZFdxp69wRNy7oOPfqG6lxTww%3D',
|
|
|
+ chatRecordFile: response.rows.chatRecordFile,
|
|
|
chatRecordFrom: 1,
|
|
|
});
|
|
|
- // 音频内容需要接口传唤格式后添加到对象
|
|
|
- // this.Ggreet.push(...response.rows);
|
|
|
- // this.Ggreet.push(...response.rows);
|
|
|
+ // AI解析
|
|
|
+ this.Ggreet.push(...response.rows);
|
|
|
+ this.garbageManager();
|
|
|
this.garbageManager();
|
|
|
});
|
|
|
},
|
|
|
@@ -682,20 +685,21 @@ export default {
|
|
|
console.log(res);
|
|
|
this.shows = false;
|
|
|
this.show = false;
|
|
|
+ this.toastLoading();
|
|
|
this.aiDialogueCommon({ type: 2, content: res.serverId })
|
|
|
.then((response) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ // 返回的数据包含我的录音和AI解析,先显示我的录音在显示AI解析
|
|
|
+ // 我的录音
|
|
|
+ this.Ggreet.push({
|
|
|
+ chatRecordFile: response.rows.chatRecordFile,
|
|
|
+ chatRecordFrom: 1,
|
|
|
+ });
|
|
|
+ // AI解析
|
|
|
this.Ggreet.push(...response.rows);
|
|
|
this.garbageManager();
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
- // aiDialogue({ type: 2, content: res.serverId }).then((response) => {
|
|
|
- // if (response.code == 200) {
|
|
|
- // this.Ggreet.push(...response.rows);
|
|
|
- // this.garbageManager();
|
|
|
- // }
|
|
|
- // this.shows = false;
|
|
|
- // this.show = false;
|
|
|
- // });
|
|
|
},
|
|
|
});
|
|
|
},
|