优化了”配置智能体“

This commit is contained in:
CGD
2025-03-25 00:01:13 +08:00
parent a3b3079b63
commit e9348f5512
2 changed files with 24 additions and 25 deletions
+2 -3
View File
@@ -221,7 +221,7 @@ export default {
});
}).send();
},
// 智能体配置
// 配置智能体
updateAgentConfig(agentId, configData, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/api/v1/user/agent/${agentId}`)
@@ -231,8 +231,7 @@ export default {
RequestService.clearRequestTime();
callback(res);
})
.fail((err) => {
console.error('保存配置失败:', err);
.fail(() => {
RequestService.reAjaxFun(() => {
this.updateAgentConfig(agentId, configData, callback);
});