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

remove this.menus

parent aee80d1d
...@@ -30,7 +30,6 @@ export const getMenuMatches = (flatMenuKeys, path) => { ...@@ -30,7 +30,6 @@ export const getMenuMatches = (flatMenuKeys, path) => {
export default class BaseMenu extends PureComponent { export default class BaseMenu extends PureComponent {
constructor(props) { constructor(props) {
super(props); super(props);
this.menus = props.menuData;
this.flatMenuKeys = this.getFlatMenuKeys(props.menuData); this.flatMenuKeys = this.getFlatMenuKeys(props.menuData);
} }
/** /**
...@@ -172,7 +171,7 @@ export default class BaseMenu extends PureComponent { ...@@ -172,7 +171,7 @@ export default class BaseMenu extends PureComponent {
style={this.props.style} style={this.props.style}
{...props} {...props}
> >
{this.getNavMenuItems(this.menus)} {this.getNavMenuItems(this.props.menuData)}
</Menu> </Menu>
); );
} }
......
...@@ -67,7 +67,6 @@ export const getMenuMatchKeys = (flatMenuKeys, paths) => ...@@ -67,7 +67,6 @@ export const getMenuMatchKeys = (flatMenuKeys, paths) =>
export default class SiderMenu extends PureComponent { export default class SiderMenu extends PureComponent {
constructor(props) { constructor(props) {
super(props); super(props);
this.menus = props.menuData;
this.flatMenuKeys = getFlatMenuKeys(props.menuData); this.flatMenuKeys = getFlatMenuKeys(props.menuData);
this.state = { this.state = {
pathname: props.location.pathname, pathname: props.location.pathname,
......
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