mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +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)})
|
this.$router.push({path:this.$xpage.getHomePath(ava.aid)})
|
||||||
},
|
},
|
||||||
toFollow(item) {
|
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) {
|
if(res.status == 200) {
|
||||||
// this.$message.success("关注成功");
|
// this.$message.success("关注成功");
|
||||||
this.getMyPage();
|
this.getMyPage();
|
||||||
@@ -174,7 +180,6 @@ import apiUser from "@/api/system/user.js";
|
|||||||
this.tagTab(this.active);
|
this.tagTab(this.active);
|
||||||
},
|
},
|
||||||
cancel(item,idx) {
|
cancel(item,idx) {
|
||||||
console.log(item,'item');
|
|
||||||
let $this=this;
|
let $this=this;
|
||||||
let id = '';
|
let id = '';
|
||||||
if(idx == 2) {
|
if(idx == 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user