This commit is contained in:
zhaofang
2022-09-20 11:02:00 +08:00
parent 596410abef
commit 2626fe7fa2
6 changed files with 95 additions and 65 deletions

View File

@@ -349,6 +349,19 @@ export default {
// }
this.isPraise=true;
this.$message({message:'点赞成功',type:'success'})
let event = {
key: "Praise",//后台的事件key 发布文章且审核通过
title: "点赞",//事件的标题
parameters:"",//用户自定义参数 name:value,name:value
content: "点赞"+this.data.title,//事件的内容
objId: this.data.id,//关联的id
objType: this.type,//关联的类型
objInfo: this.data.title,
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1
}
this.$store.dispatch("userTrigger", event);
}else{
console.log('点赞失败:'+res.message);
}