按照需求,修改关注与取消关注的提示信息。

This commit is contained in:
weinan2087
2022-10-21 16:40:20 +08:00
parent a225d32131
commit 24cd868111

View File

@@ -119,6 +119,7 @@
apiFollow.remove(this.pageId).then(res=>{ apiFollow.remove(this.pageId).then(res=>{
if(res.status == 200) { if(res.status == 200) {
this.isFollowHas = false; this.isFollowHas = false;
this.$message.success("取消关注成功");
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
@@ -157,7 +158,7 @@
toFollow() { toFollow() {
apiFollow.save(this.pageId).then(res=>{ apiFollow.save(this.pageId).then(res=>{
if(res.status == 200) { if(res.status == 200) {
this.$message.success(res.message); this.$message.success("关注成功");
this.followHas(); this.followHas();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);