🐞 fix(ID1001475 上传附件后,再多次点击上传附件成功):
This commit is contained in:
parent
58d5fd5747
commit
96192a67dd
@ -77,10 +77,11 @@ const DeliveryDetail: FC = () => {
|
||||
|
||||
const handleUploadChange = (imageList: string[]) => {
|
||||
console.log('imageList===>', imageList)
|
||||
setReadyToUploadList(prev => [...prev, ...imageList])
|
||||
setReadyToUploadList(prev => [...imageList])
|
||||
}
|
||||
// 上传附件
|
||||
const handleUploadPic = useCallback(async() => {
|
||||
console.log('readyToUploadList:::', readyToUploadList)
|
||||
const res = await uploadData({
|
||||
id: Number(router.params.id),
|
||||
delivery_appendix: readyToUploadList,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user