修改后更新

This commit is contained in:
caishi 2022-01-06 09:31:59 +08:00
parent 81d8a866f0
commit bb7732c666
1 changed files with 8 additions and 3 deletions

View File

@ -200,11 +200,16 @@ class Infos extends Component {
avatarVisible:false
})
if(reset){
const { menuKey } = this.state;
if(menuKey === "2" || menuKey === "3"){
window.location.reload();
}else{
this.fetchUser();
const { resetUserInfo } = this.props;
resetUserInfo && resetUserInfo();
}
}
}
render() {
const { current_user } = this.props;