alert('添加用户成功'); this.context.router.push('/user/list'); return
原来是用这样的方法在函数内跳转的,在升级V4之后没用了,求大神指导
通过props获取history方法或者match方法,就跟v2的一样。
this.props.history.push()
搞定了,感谢