site: fix menu highlight

This commit is contained in:
Benjy Cui 2016-03-23 11:54:10 +08:00
parent f723d6ca51
commit 3fd2b1ac41

View File

@ -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) {