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 组件只调用了一次 onChange 函数 #2547
Comments
先搜索。 |
这里手动触发了 redux action
子组件和这个组件也被重新 render 了,但是 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地环境
你做了什么?
在 Form 中使用 Upload 组件
其中
uploaded_files
是 redux store 里的,默认为空数组,api 请求后填充。上传的 Api 会正常返回。
你期待的结果是:
onChange 函数被多次调用,直到
e.file.status === 'done'
实际上的结果:
只调用了一次 onChange,
e.file.status === 'uploading'
另一种结果:
如果把
fileList
修改为defaultFileList
,则默认图片不会显示,但是上传功能就正常了The text was updated successfully, but these errors were encountered: