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
P
pro-blocks
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
pro-blocks
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
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+12
-4
src/routes/Dashboard/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