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
017a406d
Commit
017a406d
authored
Jun 07, 2018
by
qixian.cs@outlook.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci errot
parent
22785c32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
src/components/SettingDarwer/index.js
src/components/SettingDarwer/index.js
+2
-1
src/routes/Account/Settings/Info.js
src/routes/Account/Settings/Info.js
+9
-9
No files found.
src/components/SettingDarwer/index.js
View file @
017a406d
...
@@ -137,6 +137,7 @@ class SettingDarwer extends PureComponent {
...
@@ -137,6 +137,7 @@ class SettingDarwer extends PureComponent {
parent
=
{
null
}
parent
=
{
null
}
level
=
{
null
}
level
=
{
null
}
open
=
{
collapse
}
open
=
{
collapse
}
mask
=
{
false
}
onHandleClick
=
{
this
.
togglerContent
}
onHandleClick
=
{
this
.
togglerContent
}
handleChild
=
{
handleChild
=
{
!
collapse
?
(
!
collapse
?
(
...
@@ -211,7 +212,7 @@ class SettingDarwer extends PureComponent {
...
@@ -211,7 +212,7 @@ class SettingDarwer extends PureComponent {
<
Divider
/>
<
Divider
/>
<
Body
title
=
"
导航
设置
"
>
<
Body
title
=
"
其他
设置
"
>
<
List
.
Item
<
List
.
Item
actions
=
{[
actions
=
{[
<
Select
<
Select
...
...
src/routes/Account/Settings/Info.js
View file @
017a406d
...
@@ -19,15 +19,6 @@ const menuMap = {
...
@@ -19,15 +19,6 @@ const menuMap = {
currentUser
:
user
.
currentUser
,
currentUser
:
user
.
currentUser
,
}))
}))
export
default
class
Info
extends
Component
{
export
default
class
Info
extends
Component
{
static
getDerivedStateFromProps
(
props
,
state
)
{
const
{
match
,
location
}
=
props
;
let
selectKey
=
location
.
pathname
.
replace
(
`
${
match
.
path
}
/`
,
''
);
selectKey
=
menuMap
[
selectKey
]
?
selectKey
:
'
base
'
;
if
(
selectKey
!==
state
.
selectKey
)
{
return
{
selectKey
};
}
return
null
;
}
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
const
{
match
,
location
}
=
props
;
const
{
match
,
location
}
=
props
;
...
@@ -38,6 +29,15 @@ export default class Info extends Component {
...
@@ -38,6 +29,15 @@ export default class Info extends Component {
mode
:
'
inline
'
,
mode
:
'
inline
'
,
};
};
}
}
static
getDerivedStateFromProps
(
props
,
state
)
{
const
{
match
,
location
}
=
props
;
let
selectKey
=
location
.
pathname
.
replace
(
`
${
match
.
path
}
/`
,
''
);
selectKey
=
menuMap
[
selectKey
]
?
selectKey
:
'
base
'
;
if
(
selectKey
!==
state
.
selectKey
)
{
return
{
selectKey
};
}
return
null
;
}
componentDidMount
()
{
componentDidMount
()
{
window
.
addEventListener
(
'
resize
'
,
this
.
resize
);
window
.
addEventListener
(
'
resize
'
,
this
.
resize
);
this
.
resize
();
this
.
resize
();
...
...
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