From e07fabbe2fb4a8f437c76c58de2988cb6169d0b8 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 14 Mar 2023 14:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=AA=E4=BA=BA=E7=AE=80?= =?UTF-8?q?=E4=BB=8B-=E9=9C=80=E8=B7=B3=E8=BD=AC=E8=87=B3=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E7=AE=80=E4=BB=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/users/Infos.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js index 803c9745..22384126 100644 --- a/src/forge/users/Infos.js +++ b/src/forge/users/Infos.js @@ -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 {
想全方位展示自己?试试点击下方按钮定制化您的专属个人简介吧!
{ - user.show_super_description ? this.aboutDescFunc(false)}>隐藏个人简介 : this.aboutDescFunc(true)}>展示个人简介 + user.show_super_description ? + this.aboutDescFunc(false)}>隐藏个人简介 + : + this.aboutDescFunc(true)}>展示个人简介 }