Commit 9037106f authored by LiPeng's avatar LiPeng Committed by 陈帅

fix: #3114 某些情况下顶部导航高亮丢失 (#3120)

parent 95ecc752
...@@ -2,8 +2,6 @@ import React, { PureComponent } from 'react'; ...@@ -2,8 +2,6 @@ import React, { PureComponent } from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { Menu, Icon } from 'antd'; import { Menu, Icon } from 'antd';
import Link from 'umi/link'; import Link from 'umi/link';
import isEqual from 'lodash/isEqual';
import memoizeOne from 'memoize-one';
import { urlToList } from '../_utils/pathTools'; import { urlToList } from '../_utils/pathTools';
import { getMenuMatches } from './SiderMenuUtils'; import { getMenuMatches } from './SiderMenuUtils';
import { isUrl } from '@/utils/utils'; import { isUrl } from '@/utils/utils';
...@@ -26,10 +24,6 @@ const getIcon = icon => { ...@@ -26,10 +24,6 @@ const getIcon = icon => {
}; };
export default class BaseMenu extends PureComponent { export default class BaseMenu extends PureComponent {
constructor(props) {
super(props);
this.getSelectedMenuKeys = memoizeOne(this.getSelectedMenuKeys, isEqual);
}
/** /**
* 获得菜单子节点 * 获得菜单子节点
......
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