forked from Gitlink/forgeplus-react
显示个人简介-需跳转至个人简介页面
This commit is contained in:
parent
6f6dafb503
commit
e07fabbe2f
|
@ -258,6 +258,10 @@ class Infos extends Component {
|
|||
axios.put(url,params).then(result=>{
|
||||
if(result && result.data){
|
||||
this.fetchUser();
|
||||
if(flag){
|
||||
const { username } = this.props.match.params;
|
||||
this.props.history.push(`/${username}`);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -337,7 +341,10 @@ class Infos extends Component {
|
|||
<div className="usersDesc">
|
||||
<p>想全方位展示自己?试试点击下方按钮定制化您的专属个人简介吧!</p>
|
||||
{
|
||||
user.show_super_description ? <a className="emptyBtn" onClick={()=>this.aboutDescFunc(false)}>隐藏个人简介</a> : <a className="fullBtn" onClick={()=>this.aboutDescFunc(true)}>展示个人简介</a>
|
||||
user.show_super_description ?
|
||||
<a className="emptyBtn" onClick={()=>this.aboutDescFunc(false)}>隐藏个人简介</a>
|
||||
:
|
||||
<a className="fullBtn" onClick={()=>this.aboutDescFunc(true)}>展示个人简介</a>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue