Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
ant-design-pro
Commits
fcb290ef
Commit
fcb290ef
authored
Oct 27, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix link and head picture
parent
9d547019
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
BasicLayout.js
src/layouts/BasicLayout.js
+12
-4
Workplace.js
src/routes/Dashboard/Workplace.js
+1
-1
No files found.
src/layouts/BasicLayout.js
View file @
fcb290ef
...
...
@@ -102,12 +102,20 @@ class BasicLayout extends React.PureComponent {
<
/SubMenu
>
);
}
const
icon
=
item
.
icon
&&
<
Icon
type
=
{
item
.
icon
}
/>
;
return
(
<
Menu
.
Item
key
=
{
item
.
key
||
item
.
path
}
>
<
Link
to
=
{
itemPath
}
target
=
{
item
.
target
}
>
{
item
.
icon
&&
<
Icon
type
=
{
item
.
icon
}
/>
}
<
span
>
{
item
.
name
}
<
/span
>
<
/Link
>
{
/^
https
?:
\
/
\
//.test(itemPath) ? (
<
a
href
=
{
itemPath
}
target
=
{
item
.
target
}
>
{
icon
}
<
span
>
{
item
.
name
}
<
/span
>
<
/a
>
)
:
(
<
Link
to
=
{
itemPath
}
target
=
{
item
.
target
}
>
{
icon
}
<
span
>
{
item
.
name
}
<
/span
>
<
/Link
>
)
}
<
/Menu.Item
>
);
});
...
...
src/routes/Dashboard/Workplace.js
View file @
fcb290ef
...
...
@@ -139,7 +139,7 @@ export default class Workplace extends PureComponent {
const
pageHeaderContent
=
(
<
div
className
=
{
styles
.
pageHeaderContent
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
Avatar
size
=
"large"
src
=
"https://gw.alipayobjects.com/zos/rmsportal/
TmNVmrOsXeZwnvvZMNmo
.png"
/>
<
Avatar
size
=
"large"
src
=
"https://gw.alipayobjects.com/zos/rmsportal/
lctvVCLfRpYCkYxAsiVQ
.png"
/>
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
p
className
=
{
styles
.
contentTitle
}
>
早安,曲丽丽,祝你开心每一天!
<
/p
>
...
...
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