feat(web): agent and multi_agent handleSave function add promise resolve result

This commit is contained in:
zhaoying
2026-01-20 15:59:55 +08:00
parent c6030bbec8
commit 91d3758691
4 changed files with 10 additions and 13 deletions

View File

@@ -58,16 +58,14 @@ const Cluster = forwardRef<ClusterRef>((_props, ref) => {
}))
}
console.log('params', params)
return new Promise((resolve, reject) => {
form.validateFields().then(() => {
saveMultiAgentConfig(id as string, params)
.then(() => {
.then((res) => {
if (flag) {
message.success(t('common.saveSuccess'))
}
resolve(true)
resolve(res)
})
.catch(error => {
reject(error)