Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
9037106f
Commit
9037106f
authored
Dec 13, 2018
by
LiPeng
Committed by
陈帅
Dec 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: #3114 某些情况下顶部导航高亮丢失 (#3120)
parent
95ecc752
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
src/components/SiderMenu/BaseMenu.js
src/components/SiderMenu/BaseMenu.js
+0
-6
No files found.
src/components/SiderMenu/BaseMenu.js
View file @
9037106f
...
...
@@ -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
);
}
/**
* 获得菜单子节点
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment