提交 fcb290ef 编写于 作者: A afc163

Fix link and head picture

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册