我们如何this.props.history.push('/page')在React-Router v4中传递参数?
.then(response => {
var r = this;
if (response.status >= 200 && response.status < 300) {
r.props.history.push('/template');
});
Run Code Online (Sandbox Code Playgroud) 我正在使用版本
"react": "^0.13.3",
"react-router": "^0.13.3"
Run Code Online (Sandbox Code Playgroud)
我想接收它导航的参数
1)导航正确完成
2)当我尝试使用它this.props.query.id来接收参数时它会显示什么undefined。