mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
site: fix menu highlight
This commit is contained in:
parent
f723d6ca51
commit
3fd2b1ac41
@ -26,8 +26,7 @@ export default class MainContent extends React.Component {
|
||||
}
|
||||
|
||||
getActiveMenuItem(props) {
|
||||
const routes = props.routes;
|
||||
return routes[routes.length - 1].path;
|
||||
return props.params.children;
|
||||
}
|
||||
|
||||
fileNameToPath(fileName) {
|
||||
|
Loading…
Reference in New Issue
Block a user