feat(intelligent-agent): 上传图片功能

- 在 generatedApi 中添加 uploadImage 函数
- 在 info 组件中实现图片上传逻辑- 在智能代理列表中添加对图片类型的处理和显示
This commit is contained in:
陈昱达
2025-04-29 16:06:38 +08:00
parent 0c4bb85a90
commit 48008d3da1
3 changed files with 30 additions and 6 deletions

View File

@@ -399,3 +399,10 @@ export function updateMetaDataDoc(data) {
data
})
}
export function uploadImage(data) {
return request({
url: getUrl(`/image/upload`),
method: 'post',
data
})
}