Commit fcb290ef authored by afc163's avatar afc163

Fix link and head picture

parent 9d547019
......@@ -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>
);
});
......
......@@ -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>
......
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