feat: 处理文件上传参数

This commit is contained in:
2024-11-28 10:50:49 +08:00
parent 41314ee3c6
commit 3b61cf42ce
4 changed files with 5 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ function FormComponent(props: Props) {
</Form.Item>
<Form.Item triggerPropName="fileList" label="用户头像"
field="avatar">
<UploadFile limit={1} dir="/user"/>
<UploadFile limit={1} dir="user"/>
</Form.Item>
<Form.Item label="用户昵称" field="name" rules={[{required: true}]}>
<Input placeholder="请输入用户昵称"/>