diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index cbbdd386fc89d661022b36557539230b718928c9..21e02dc6f13498c18453f29575fca5ae2be04f36 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -30,7 +30,6 @@ export const getMenuMatches = (flatMenuKeys, path) => { export default class BaseMenu extends PureComponent { constructor(props) { super(props); - this.menus = props.menuData; this.flatMenuKeys = this.getFlatMenuKeys(props.menuData); } /** @@ -172,7 +171,7 @@ export default class BaseMenu extends PureComponent { style={this.props.style} {...props} > - {this.getNavMenuItems(this.menus)} + {this.getNavMenuItems(this.props.menuData)} ); } diff --git a/src/components/SiderMenu/SliderMenu.js b/src/components/SiderMenu/SliderMenu.js index 5bd10b1661e7c2255e93d6f6d61104b544fb4f18..ed36a39462177f395e03a8d56297ab5a86753331 100644 --- a/src/components/SiderMenu/SliderMenu.js +++ b/src/components/SiderMenu/SliderMenu.js @@ -67,7 +67,6 @@ export const getMenuMatchKeys = (flatMenuKeys, paths) => export default class SiderMenu extends PureComponent { constructor(props) { super(props); - this.menus = props.menuData; this.flatMenuKeys = getFlatMenuKeys(props.menuData); this.state = { pathname: props.location.pathname,