1
0

feat(web): 实现文件上传和下载功能

- 在 DataFileController 中添加文件上传和下载接口- 更新 WareController 中的图标处理逻辑
- 在 DataFile 实体中添加文件类型字段
- 更新 DataFileService 中的文件信息更新方法
- 在前端组件中添加文件上传和下载相关配置
This commit is contained in:
2024-12-17 10:31:34 +08:00
parent 94a3be2b58
commit 420651c073
6 changed files with 69 additions and 12 deletions

View File

@@ -21,6 +21,10 @@ function detailForm() {
name: 'icon',
label: '图标',
required: true,
receiver: apiPost("${base}/upload"),
autoFill: {
iconId: '${id}',
}
},
{
type: 'picker',
@@ -75,6 +79,7 @@ function detailForm() {
name: 'content',
label: '商品详情',
required: true,
receiver: '',
options: {
min_height: 300,
}