forked from Gitlink/forgeplus-react
头部头像跳转到个人中心链接错误
This commit is contained in:
parent
8401a55e49
commit
fc5c957bf1
|
@ -824,7 +824,7 @@ class NewHeader extends Component {
|
|||
</span>
|
||||
:
|
||||
<div className="ml30 edu-menu-panel" style={{ height: "70px", lineHeight: "70px" }}>
|
||||
<a href={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/courses`}>
|
||||
<a href={`/users/${this.props.current_user && this.props.current_user.login}`}>
|
||||
<img alt="头像" className="radius" height="34" id="nh_user_logo" name="avatar_image"
|
||||
src={getImageUrl(`images/` + user.image_url)} width="34">
|
||||
</img>
|
||||
|
|
Loading…
Reference in New Issue