From 9037106f5c1609d54a50e3f723f21bbbe30fec52 Mon Sep 17 00:00:00 2001 From: LiPeng Date: Thu, 13 Dec 2018 15:22:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#3114=20=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E4=B8=A2=E5=A4=B1=20(#3120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SiderMenu/BaseMenu.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 83e8837e..93e5094e 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); - } /** * 获得菜单子节点 -- GitLab