From fcb290efe11f58a942ec18f4c1fcde5fff01e379 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 27 Oct 2017 19:03:05 +0800 Subject: [PATCH] Fix link and head picture --- src/layouts/BasicLayout.js | 16 ++++++++++++---- src/routes/Dashboard/Workplace.js | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 4fff1da3..118c4323 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -102,12 +102,20 @@ class BasicLayout extends React.PureComponent { ); } + const icon = item.icon && ; return ( - - {item.icon && } - {item.name} - + { + /^https?:\/\//.test(itemPath) ? ( + + {icon}{item.name} + + ) : ( + + {icon}{item.name} + + ) + } ); }); diff --git a/src/routes/Dashboard/Workplace.js b/src/routes/Dashboard/Workplace.js index ba1bd086..71964fd2 100644 --- a/src/routes/Dashboard/Workplace.js +++ b/src/routes/Dashboard/Workplace.js @@ -139,7 +139,7 @@ export default class Workplace extends PureComponent { const pageHeaderContent = (
- +

早安,曲丽丽,祝你开心每一天!

-- GitLab