diff --git a/src/components/HomePage/followList.vue b/src/components/HomePage/followList.vue index 2ee43add..ed959ba8 100644 --- a/src/components/HomePage/followList.vue +++ b/src/components/HomePage/followList.vue @@ -158,7 +158,13 @@ import apiUser from "@/api/system/user.js"; this.$router.push({path:this.$xpage.getHomePath(ava.aid)}) }, toFollow(item) { - apiFollow.save(item.userFollow.aid).then(res=>{ + let id = ''; + if(this.active == 2) { + id = item.userFollow.aid; + } else { + id = item.userFollow.followId; + } + apiFollow.save(id).then(res=>{ if(res.status == 200) { // this.$message.success("关注成功"); this.getMyPage(); @@ -174,7 +180,6 @@ import apiUser from "@/api/system/user.js"; this.tagTab(this.active); }, cancel(item,idx) { - console.log(item,'item'); let $this=this; let id = ''; if(idx == 2) {