From 803836e7082111913760c9cf951a4d010c984a49 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 5 Jun 2020 18:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/users/common_lists.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/forge/users/common_lists.js b/src/forge/users/common_lists.js index 9c99f1a6..afee3331 100644 --- a/src/forge/users/common_lists.js +++ b/src/forge/users/common_lists.js @@ -66,7 +66,8 @@ class CommonList extends Component { render() { const { users, isSpin, total, search, limit, page } = this.state; - const { userType } = this.props; + const { userType, login, current_user } = this.props; + const title_type =( current_user && login === current_user.login) ? "我" : "TA" const pagination = total && total > limit ? ( @@ -87,7 +88,7 @@ class CommonList extends Component {
-

{userType === "watch_users" ? "我关注的" : "关注我的"}

+

{userType === "watch_users" ? `${title_type}关注的` : `关注${title_type}的`}