From 677890a06dfb98b178dd716641f4ab053cfe7c87 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 20 Aug 2020 14:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=85=B3=E6=B3=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 7e6e891..6888b10 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -400,7 +400,12 @@ member_id: member_id }).then((res) => { this.follow_page = 0; - this.getRecommendList(); // 关注列表 + // this.getRecommendList(); // 关注列表 + for(let i in this.recommendList){ + if(this.recommendList[i].member_id == member_id){ + this.recommendList[i].is_attention == 1 ? this.recommendList[i].is_attention = 0 : this.recommendList[i].is_attention = 1 + } + } this.getFollowList(); // 刷新发现的列表 }) },