完成“配置智能体“功能

This commit is contained in:
CGD
2025-03-24 22:41:32 +08:00
parent 52a66ea304
commit a3b3079b63
2 changed files with 76 additions and 33 deletions
+17
View File
@@ -221,5 +221,22 @@ export default {
});
}).send();
},
// 智能体配置
updateAgentConfig(agentId, configData, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/api/v1/user/agent/${agentId}`)
.method('PUT')
.data(configData)
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.fail((err) => {
console.error('保存配置失败:', err);
RequestService.reAjaxFun(() => {
this.updateAgentConfig(agentId, configData, callback);
});
}).send();
},
}