From 306240a2c55b44996f12d9966945da97af5eb7df Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 19 Jul 2019 18:33:51 +0800 Subject: [PATCH] did --- public/react/src/modules/user/usersInfo/Infos.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/user/usersInfo/Infos.js b/public/react/src/modules/user/usersInfo/Infos.js index 49e84efa7..a76d98628 100644 --- a/public/react/src/modules/user/usersInfo/Infos.js +++ b/public/react/src/modules/user/usersInfo/Infos.js @@ -63,6 +63,10 @@ class Infos extends Component{ login:this.props.current_user.login }) } + } else { + if (prevProps.match.params.username != this.props.match.params.username) { + this.getInfo(this.props.match.params.username); + } } }