Upload组件在Form中使用,会处于受控状态,所以初始化FileList等默认值需要通过Form的setFieldsValue方法const[form]=Form.useForm();form.setFieldsValue({banner:[{uid:uuid().toString(),name:imageURL,status:'done',url:imageURL}],})

Upload组件在Form中使用,会处于受控状态,所以初始化FileList等默认值需要通过Form的setFieldsValue方法const[form]=Form.useForm();form.setFieldsValue({banner:[{uid:uuid().toString(),name:imageURL,status:'done',url:imageURL}],})