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
f2497cb0
Commit
f2497cb0
authored
Aug 29, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open user pages in current tag
parent
14fa2965
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/common/nav.js
src/common/nav.js
+0
-1
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+1
-1
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+6
-3
No files found.
src/common/nav.js
View file @
f2497cb0
...
...
@@ -36,7 +36,6 @@ function userAdapter(userData) {
userAdapter
(
item
);
}
else
{
const
userItem
=
item
;
userItem
.
target
=
'
_blank
'
;
userItem
.
noRoute
=
true
;
}
});
...
...
src/layouts/BasicLayout.js
View file @
f2497cb0
...
...
@@ -79,7 +79,7 @@ class BasicLayout extends React.PureComponent {
}
return
(
<
Menu
.
Item
key
=
{
item
.
key
||
item
.
path
}
>
<
Link
to
=
{
itemPath
}
target
=
{
item
.
target
||
'
_self
'
}
>
<
Link
to
=
{
itemPath
}
>
<
Icon
type
=
{
item
.
icon
}
/
>
<
span
>
{
item
.
name
}
<
/span
>
<
/Link
>
...
...
src/layouts/UserLayout.js
View file @
f2497cb0
import
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
Link
}
from
'
dva/router
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
...
...
@@ -44,10 +45,12 @@ class UserLayout extends React.PureComponent {
<
div
className
=
{
styles
.
container
}
>
<
div
className
=
{
styles
.
top
}
>
<
div
className
=
{
styles
.
header
}
>
<
img
alt
=
""
className
=
{
styles
.
logo
}
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/NGCCBOENpgTXpBWUIPnI.svg
"
/>
<
span
className
=
{
styles
.
title
}
>
Ant
Design
<
/span
>
<
Link
to
=
"
/
"
>
<
img
alt
=
""
className
=
{
styles
.
logo
}
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/NGCCBOENpgTXpBWUIPnI.svg
"
/>
<
span
className
=
{
styles
.
title
}
>
Ant
Design
<
/span
>
<
/Link
>
<
/div
>
<
p
className
=
{
styles
.
desc
}
>
Ant
Design
是
东半球
最具影响力的
Web
设计规范
<
/p
>
<
p
className
=
{
styles
.
desc
}
>
Ant
Design
是
西湖区
最具影响力的
Web
设计规范
<
/p
>
<
/div
>
{
children
}
<
GlobalFooter
className
=
{
styles
.
footer
}
links
=
{
links
}
copyright
=
{
copyright
}
/
>
...
...
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