forked from Gitlink/forgeplus-react
头像跳转到个人主页
This commit is contained in:
parent
765840f2c8
commit
75f26ac136
|
@ -591,11 +591,12 @@ class NewHeader extends Component {
|
|||
}
|
||||
|
||||
renderMenu=(personal)=>{
|
||||
const { current_user } = this.props;
|
||||
const { current_user , mygetHelmetapi } = this.props;
|
||||
console.log(mygetHelmetapi)
|
||||
return(
|
||||
<Menu className="currentMenu">
|
||||
<Menu.Item>
|
||||
<span className="currentName" title={current_user && current_user.username}>{current_user && current_user.username}</span>
|
||||
<a href={`${mygetHelmetapi && mygetHelmetapi.common && mygetHelmetapi.common.main_site_url}/${current_user && current_user.login}`} className="currentName" title={current_user && current_user.username}>{current_user && current_user.username}</a>
|
||||
</Menu.Item>
|
||||
{
|
||||
personal && personal.length > 0 && personal.map((item,key)=>{
|
||||
|
|
Loading…
Reference in New Issue