Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
cjango opened this issue Jun 6, 2024 · 2 comments · May be fixed by #7773
Closed
1 task

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

cjango opened this issue Jun 6, 2024 · 2 comments · May be fixed by #7773
Labels

Comments

@cjango
Copy link

cjango commented Jun 6, 2024

  • 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

@cjango
Copy link
Author

cjango commented Jun 6, 2024

image

Copy link

github-actions bot commented Aug 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant