This commit is contained in:
zhaofang
2022-10-28 19:09:09 +08:00
parent 0b75347b84
commit 1d6acd1079

View File

@@ -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) {