Open jjkke88 opened 7 years ago
i find that i should bind function to this(bind(this)) in config , for my excuse.
@jjkke88 : Or, you could do this
uploadSuccess : (response) => { this.setState({/*whatever*/}); }
i also can't setstate does not call render. who can slove this? tell me 1457797371@qq.com ...thanks
uploading: function (progress) { console.log(this) let rate = progress.loaded / progress.total + '%'; this.setState({rate}) console.log('loading...', rate) }.bind(this)
i have this problem
@q1457797371 这个问题你解决了吗?
when i use setstate in uploadSuccess, render() does not call