ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

[Upload]组件,自定义上传onSuccess回调不生效

Open jasonencode opened this issue 1 year ago • 1 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

vue3

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

<a-upload :max-count="1" v-model:file-list="fileList" :customRequest="uploadFile" name="business" />

<script setup>
const uploadFile = ({ onSuccess, onError, file }) => {
console.log(file);
onSuccess({
status: 'done',
name: 'name'
})
}
</script>

What is expected?

onSuccess回调之后,上传文件前面一直在loading

What is actually happening?

onSuccess回调之后,上传文件前面一直在loading

jasonencode avatar Jun 06 '24 09:06 jasonencode

image

jasonencode avatar Jun 06 '24 09:06 jasonencode

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 06 '24 02:08 github-actions[bot]