diff --git a/src/components/HomePage/followList.vue b/src/components/HomePage/followList.vue index 7caedea0..f6f5f53c 100644 --- a/src/components/HomePage/followList.vue +++ b/src/components/HomePage/followList.vue @@ -66,9 +66,9 @@

{{maPage.userFollow.authorInfo.sign}}

-
+
已关注 - 关注他 + 关注他
@@ -147,6 +147,16 @@ import apiUser from "@/api/system/user.js"; }) }, methods:{ + toFollow(item) { + apiFollow.save(item.userFollow.aid).then(res=>{ + if(res.status == 200) { + // this.$message.success("关注成功"); + this.getMyPage(); + } else { + this.$message.error(res.message); + } + }) + }, resetActive(){ this.active=1; this.follow={list:[],count:0,pageIndex:1,pageSize:10}, @@ -157,7 +167,8 @@ import apiUser from "@/api/system/user.js"; let $this=this; apiFollow.remove(item.followId).then(res=>{ if(res.status == 200) { - $this.follow.list.splice(idx,1); + this.getPage(); + // $this.follow.list.splice(idx,1); } }) },//展示全部