|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获得菜单子节点 |
|
|
|
|