修复智控台音频播放权限bug

This commit is contained in:
hrz
2025-05-04 20:03:13 +08:00
parent a144570ed7
commit 81359bf419
5 changed files with 67 additions and 29 deletions
+15 -15
View File
@@ -128,19 +128,19 @@ export default {
});
}).send();
},
}
export function getAgentSessions(agentId, params) {
return request({
url: `/agent/${agentId}/sessions`,
method: 'get',
params
});
}
export function getAgentChatHistory(agentId, sessionId) {
return request({
url: `/agent/${agentId}/chat-history/${sessionId}`,
method: 'get'
});
// 获取音频下载ID
getAudioId(audioId, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/agent/audio/${audioId}`)
.method('POST')
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.fail(() => {
RequestService.reAjaxFun(() => {
this.getAudioId(audioId, callback);
});
}).send();
},
}