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
23d00abb
Commit
23d00abb
authored
Apr 12, 2019
by
耐小心
Committed by
陈帅
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix当hideInBreadcrumb==true,面包屑报错的问题 (#3984)
* fix hideInBreadcrumb==true error * update for ci
parent
f1c495d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
src/components/PageHeaderWrapper/breadcrumb.js
src/components/PageHeaderWrapper/breadcrumb.js
+16
-14
No files found.
src/components/PageHeaderWrapper/breadcrumb.js
View file @
23d00abb
...
...
@@ -61,7 +61,8 @@ const conversionFromLocation = (routerLocation, breadcrumbNameMap, props) => {
// Convert the url to an array
const
pathSnippets
=
urlToList
(
routerLocation
.
pathname
);
// Loop data mosaic routing
const
extraBreadcrumbItems
=
pathSnippets
.
map
(
url
=>
{
const
extraBreadcrumbItems
=
pathSnippets
.
map
(
url
=>
{
const
currentBreadcrumb
=
getBreadcrumb
(
breadcrumbNameMap
,
url
);
if
(
currentBreadcrumb
.
inherited
)
{
return
null
;
...
...
@@ -74,7 +75,8 @@ const conversionFromLocation = (routerLocation, breadcrumbNameMap, props) => {
breadcrumbName
:
name
,
}
:
null
;
});
})
.
filter
(
item
=>
item
!==
null
);
// Add home breadcrumbs to your head if defined
if
(
home
)
{
extraBreadcrumbItems
.
unshift
({
...
...
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