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
1e0a8c5d
Commit
1e0a8c5d
authored
Aug 31, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete hardcode, decouple location
parent
7cc1fccd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1281 additions
and
6 deletions
+1281
-6
log.csv
log.csv
+1275
-0
src/components/PageHeader/index.js
src/components/PageHeader/index.js
+5
-5
src/components/PageHeader/index.less
src/components/PageHeader/index.less
+1
-1
No files found.
log.csv
0 β 100644
View file @
1e0a8c5d
This diff is collapsed.
Click to expand it.
src/components/PageHeader/index.js
View file @
1e0a8c5d
...
@@ -28,12 +28,12 @@ export default class PageHeader extends PureComponent {
...
@@ -28,12 +28,12 @@ export default class PageHeader extends PureComponent {
}
}
componentDidUpdate
(
preProps
)
{
componentDidUpdate
(
preProps
)
{
const
{
const
{
location
}
=
this
.
props
;
tabActiveKey
,
if
(
!
location
||
!
preProps
.
location
)
{
location
:
{
pathname
},
return
;
}
=
this
.
props
;
}
const
prePathname
=
preProps
.
location
.
pathname
;
const
prePathname
=
preProps
.
location
.
pathname
;
if
(
preP
rops
.
tabActiveKey
!==
tabActiveKey
||
prePathname
!==
pathname
)
{
if
(
preP
athname
!==
location
.
pathname
)
{
this
.
getBreadcrumbDom
();
this
.
getBreadcrumbDom
();
}
}
}
}
...
...
src/components/PageHeader/index.less
View file @
1e0a8c5d
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
}
}
.tabs {
.tabs {
margin: 0 0
-17px
-8px;
margin: 0 0
0
-8px;
:global {
:global {
.ant-tabs-bar {
.ant-tabs-bar {
...
...
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