Browse Source

fix this.flatMenuKeys error

pull/2474/head
陈帅 8 years ago
parent
commit
1cdf566259
  1. 4
      src/components/SiderMenu/BaseMenu.js

4
src/components/SiderMenu/BaseMenu.js

@ -72,9 +72,7 @@ export default class BaseMenu extends PureComponent {
// Get the currently selected menu
getSelectedMenuKeys = pathname =>
urlToList(pathname).map(function(itemPath) {
return getMenuMatches(this.flatMenuKeys, itemPath).pop();
});
urlToList(pathname).map(itemPath => getMenuMatches(this.flatMenuKeys, itemPath).pop());
/**
* get SubMenu or Item

Loading…
Cancel
Save