前端项目实战23-前端上传文件进行数据绑定用fileList

 <Upload
                            name="file"
                            action="xxxx"
                            onChange={handleChange}
                            fileList={fileList}
                            headers={{ "Authorization": getToken() || "" }}
                        >
                            {headPic ?"" : uploadButton}
                        </Upload>

posted @ 2022-08-26 20:35  前端导师歌谣  阅读(20)  评论(0)    收藏  举报