修复添加和修改声纹选择的时候,编辑的声纹不在里面,导致无法显示内容的问题

--agent.js 增加查询音频内容的接口
--VoicePrintDialog.vue 修复添加和修改声纹选择的时候,编辑的声纹不在里面,导致无法显示内容的问题
This commit is contained in:
JianYu Zheng
2025-07-09 15:56:07 +08:00
parent 5e18a46e3f
commit f47a7b4dbc
2 changed files with 28 additions and 0 deletions
+15
View File
@@ -250,4 +250,19 @@ export default {
});
}).send();
},
// 获取指定智能体用户类型聊天记录
getContentByAudioId(id,callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/agent/${id}/chat-history/audio`)
.method('GET')
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.networkFail(() => {
RequestService.reAjaxFun(() => {
this.getContentByAudioId(id,callback);
});
}).send();
},
}