谢谢老师,我刚实验了一下:1.我在fetch方法里用router.transitionTo ();好像不行,不保错但是不跳转。
2.browserHistory.push('');实现了跳转但是(某些未知)参数好像没带过去页面会是空白(只有一个提示信息Cannot GET /index【跳转的路径名】);
3.用this.props.history.push('');这个方法就正常跳转,但是会Warning: [react-router] `props.history` and `context.history` are deprecated. Please use `context.router`. http://tiny.cc/router-contextchanges。的Warning. 换了指定的context.router会变成上面第一种情况。