mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 00:36:44 +08:00
解决关注人员关注处理时控制问题
This commit is contained in:
@@ -51,14 +51,15 @@
|
||||
watch:{
|
||||
has(newVal,oldVal){
|
||||
this.has=newVal;
|
||||
console.log(newVal,oldVal,'测试问题');
|
||||
this.hasFollow=newVal;
|
||||
if(newVal!=oldVal && this.auto){
|
||||
this.autoCheck();
|
||||
}
|
||||
|
||||
},
|
||||
aid(newVal){
|
||||
this.aid=newVal;
|
||||
aid(newVal,oldVal){
|
||||
//this.aid=newVal;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -112,22 +113,21 @@
|
||||
apiUser.getByIds([this.aid]).then(rs => {
|
||||
if (res.status == 200) {
|
||||
let data = {
|
||||
has:true,
|
||||
userFollow:{
|
||||
aid:res.result.aid,
|
||||
followId:res.result.followId,
|
||||
followTime:res.result.followTime,
|
||||
id:res.result.id,
|
||||
authorInfo:rs.result[0],
|
||||
has:true,
|
||||
userFollow:{
|
||||
aid:res.result.aid,
|
||||
followId:res.result.followId,
|
||||
followTime:res.result.followTime,
|
||||
id:res.result.id,
|
||||
authorInfo:rs.result[0],
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
$this.$emit('add',data);
|
||||
$this.$emit('add',data);
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
$this.$message.error("关注失败:"+res.message);
|
||||
|
||||
Reference in New Issue
Block a user