Commit fcb290ef authored by afc163's avatar afc163

Fix link and head picture

parent 9d547019
...@@ -102,12 +102,20 @@ class BasicLayout extends React.PureComponent { ...@@ -102,12 +102,20 @@ class BasicLayout extends React.PureComponent {
</SubMenu> </SubMenu>
); );
} }
const icon = item.icon && <Icon type={item.icon} />;
return ( return (
<Menu.Item key={item.key || item.path}> <Menu.Item key={item.key || item.path}>
<Link to={itemPath} target={item.target}> {
{item.icon && <Icon type={item.icon} />} /^https?:\/\//.test(itemPath) ? (
<span>{item.name}</span> <a href={itemPath} target={item.target}>
</Link> {icon}<span>{item.name}</span>
</a>
) : (
<Link to={itemPath} target={item.target}>
{icon}<span>{item.name}</span>
</Link>
)
}
</Menu.Item> </Menu.Item>
); );
}); });
......
...@@ -139,7 +139,7 @@ export default class Workplace extends PureComponent { ...@@ -139,7 +139,7 @@ export default class Workplace extends PureComponent {
const pageHeaderContent = ( const pageHeaderContent = (
<div className={styles.pageHeaderContent}> <div className={styles.pageHeaderContent}>
<div className={styles.avatar}> <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>
<div className={styles.content}> <div className={styles.content}>
<p className={styles.contentTitle}>早安曲丽丽祝你开心每一天</p> <p className={styles.contentTitle}>早安曲丽丽祝你开心每一天</p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment