我的笔记,对齐问题

This commit is contained in:
daihh
2022-10-31 15:20:39 +08:00
parent 72c747b236
commit f14d269fac
2 changed files with 29 additions and 1 deletions

View File

@@ -792,6 +792,19 @@
this.$message.info('已取消点赞');
this.isPraise = false;
this.courseInfo.praises--;
let event = {
key: "CancelPraise",//点赞
title: "取消点赞",//事件的标题
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
content: "取消点赞课程",//事件的内容
objId: this.courseId,//关联的id
objType: "1",//关联的类型
objInfo: this.courseInfo.name,
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1
}
this.$store.dispatch("userTrigger", event);
} else {
this.$message.error('取消点赞失败,请稍后再试');
}
@@ -803,6 +816,19 @@
this.$message.success('点赞成功');
this.isPraise = true;
this.courseInfo.praises++;
let event = {
key: "Praise",//点赞
title: "点赞",//事件的标题
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
content: "点赞了课程",//事件的内容
objId: this.courseId,//关联的id
objType: "1",//关联的类型
objInfo: this.courseInfo.name,
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1
}
this.$store.dispatch("userTrigger", event);
} else {
this.$message.error('点赞失败,请稍后再试');
}