diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index a5a05ec5..f13caba0 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -310,7 +310,7 @@ export default { } let msgPageParams=this.pageParams; if(!msgPageParams){ - msgPageParams=this.data.id; + msgPageParams=this.data.id ?this.data.id: this.data.courseId; } let message={ content, @@ -558,7 +558,7 @@ export default { this.$store.dispatch("unicomFavorites",true) } //if(this.type===2||this.type===4){ - this.messageSave(this.data.id,this.data.title,this.userInfo.name,this.data.sysCreateBy,this.data.sysCreateAid,'收藏了我发布的'); + this.messageSave(this.data.id ?this.data.id: this.data.courseId,this.data.title,this.userInfo.name,this.data.sysCreateBy,this.data.sysCreateAid,'收藏了我发布的'); //} this.$message({message:'已加入收藏',type:'success'}); //this.$emit('addFavorite',res.result);//添加收藏,如果是true代表添加成功,false代表已存在