<Route path={`${match.url}/detail/:id`} component={AppManageAddDetail} />
const { match:{params:{ id, }}} = this.props;
一行代碼直接搞定.
match和params都是this.props自帶的屬性,不需要單獨配置,直接拿來用就行,
const {
match:{
params:{
id, }}} =
this.
props;
