头像跳转到个人主页

This commit is contained in:
caishi 2022-03-22 10:32:44 +08:00
parent 765840f2c8
commit 75f26ac136
1 changed files with 3 additions and 2 deletions

View File

@ -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)=>{