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(); // 刷新发现的列表 }) },