feat: uploadCover
This commit is contained in:
@@ -33,9 +33,9 @@ export default function UploadFromWx(props: UploadFromWxProps) {
|
||||
id: (Date.now() + count++).toString(),
|
||||
}))
|
||||
const onFileUploaded = uploadApi.batchUpload(files)
|
||||
onAdd(res.tempFiles.map(item => ({
|
||||
id: Date.now().toString(),
|
||||
url: item.path,
|
||||
onAdd(files.map(item => ({
|
||||
id: item.id,
|
||||
url: item.filePath,
|
||||
})), onFileUploaded) // TODO: add loading state
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user