Commit 1cdf5662 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix this.flatMenuKeys error

parent 394437d0
...@@ -72,9 +72,7 @@ export default class BaseMenu extends PureComponent { ...@@ -72,9 +72,7 @@ export default class BaseMenu extends PureComponent {
// Get the currently selected menu // Get the currently selected menu
getSelectedMenuKeys = pathname => getSelectedMenuKeys = pathname =>
urlToList(pathname).map(function(itemPath) { urlToList(pathname).map(itemPath => getMenuMatches(this.flatMenuKeys, itemPath).pop());
return getMenuMatches(this.flatMenuKeys, itemPath).pop();
});
/** /**
* get SubMenu or Item * get SubMenu or Item
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment