diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 83e8837e1ddf04165cd75ae9125104620a869dad..93e5094eda211acb5643daa75e3ad3ec28608d00 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -2,8 +2,6 @@ import React, { PureComponent } from 'react'; import classNames from 'classnames'; import { Menu, Icon } from 'antd'; import Link from 'umi/link'; -import isEqual from 'lodash/isEqual'; -import memoizeOne from 'memoize-one'; import { urlToList } from '../_utils/pathTools'; import { getMenuMatches } from './SiderMenuUtils'; import { isUrl } from '@/utils/utils'; @@ -26,10 +24,6 @@ const getIcon = icon => { }; export default class BaseMenu extends PureComponent { - constructor(props) { - super(props); - this.getSelectedMenuKeys = memoizeOne(this.getSelectedMenuKeys, isEqual); - } /** * 获得菜单子节点