mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
按照需求,修改关注与取消关注的提示信息。
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user