<Form.Item
labelCol={{ span: 8 }}
label="文件上传"
name={"uoload"}
rules={[{ required: true, message: '文件上传' }]}
>
<Upload name="file"
fileList={fileList}
action={`${BaseUrl}/file/upload`}
onChange={handleChange}
headers={{ "Authorization": getToken() || "" }}
>
<Button icon={<UploadOutlined />}
>上传</Button>
</Upload>
</Form.Item>
前端项目实战87-文件上传
最新推荐文章于 2024-05-05 17:04:41 发布