feat(web): 1. user memory; 2. update workspace's model config

This commit is contained in:
zhaoying
2025-12-25 11:54:31 +08:00
parent a1def533af
commit 2b30a69b94
10 changed files with 155 additions and 89 deletions

View File

@@ -41,15 +41,15 @@ const ConfigModal = forwardRef<ConfigModalRef>((_props, ref) => {
.validateFields()
.then(() => {
setLoading(true)
// updateWorkspaceModels(values as ConfigModalData)
// .then(() => {
// setLoading(false)
// handleClose()
// message.success(t('common.createSuccess'))
// })
// .catch(() => {
// setLoading(false)
// });
updateWorkspaceModels(values)
.then(() => {
setLoading(false)
handleClose()
message.success(t('common.updateSuccess'))
})
.catch(() => {
setLoading(false)
});
handleClose()
})