1.跳转传参:
this.props.history.push({pathname:"/list", query: {
“id”: 123,
"canshuB": true,
}});
2.页面接收获取参数:
const id = this.props.location.query.id;
1.跳转传参:
this.props.history.push({pathname:"/list", query: {
“id”: 123,
"canshuB": true,
}});
2.页面接收获取参数:
const id = this.props.location.query.id;