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事件时,response为undefined #2521
Comments
Please provide a re-producible demo: http://codepen.io/anon/pen/wGOWGW?editors=001 |
就是和官方的例子写的。 |
Please provide a re-producible demo: http://codepen.io/anon/pen/wGOWGW?editors=001 |
把你使用 upload 的完整代码贴一下。 |
constructor:
onChange事件:
render中定义如下:
|
把setState放到if(file.response)外就可以了。 |
请关掉 issue 。 |
完全不理我。 |
sorry,今天请假了。没能及时回复!!@afc163 |
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. |
本地环境
你做了什么?
使用Upload上传组件时,回调onChange时,file.response为undefined。
之前的版本(很早,大概是1.4版本左右)是没有问题的,可以正常获取数据,最近升级后出现的问题。
你期待的结果是:
在回调onChange时,file.response为服务端返回的数据。
实际上的结果:
file.response为undefined。
The text was updated successfully, but these errors were encountered: