mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
提交
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user