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

@@ -311,17 +311,15 @@ const Agent = forwardRef<AgentRef>((_props, ref) => {
enabled: vo.enabled
}))
}
console.log('params', rest, params)
return new Promise((resolve, reject) => {
saveAgentConfig(data.app_id, params)
.then(() => {
.then((res) => {
if (flag) {
message.success(t('common.saveSuccess'))
}
setIsSave(false)
resolve(true)
resolve(res)
}).catch(error => {
reject(error)
})