描述:
react类式组件使用antd的upload时,onChange只执行一次
原因:
没有重新设置fileList的值
解决方法:
handlerChange=({file,fileList})=>{
this.setState({
imgList:[...fileList]
})
}
描述:
react类式组件使用antd的upload时,onChange只执行一次
原因:
没有重新设置fileList的值
解决方法:
handlerChange=({file,fileList})=>{
this.setState({
imgList:[...fileList]
})
}