react 路由传参
const goToParames = (path, params) => {
history.push({
pathname: path,
query: {
params
},
});
};
props.location.query
const goToParames = (path, params) => {
history.push({
pathname: path,
state: {
params
},
});
};
props.location.state.params