Commit 5395d704 authored by 罗林杰's avatar 罗林杰

修改bug

parent 1377bb92
...@@ -157,10 +157,8 @@ export default{ ...@@ -157,10 +157,8 @@ export default{
//设置上级评论id 加这个逻辑是为了保证永远只有两层结构 //设置上级评论id 加这个逻辑是为了保证永远只有两层结构
if (value.parentId == null){ if (value.parentId == null){
//点击的第一层评论 //点击的第一层评论
console.log('1`11111111')
this.parentId = value.businessId this.parentId = value.businessId
} else { } else {
console.log('222222222222')
//点击的第二层评论 //点击的第二层评论
this.parentId = value.parentId this.parentId = value.parentId
} }
...@@ -257,9 +255,7 @@ export default{ ...@@ -257,9 +255,7 @@ export default{
const params = { const params = {
articleId: this.articleInfo.businessId,//动态id articleId: this.articleInfo.businessId,//动态id
commentContent:value,//评论内容 commentContent:value,//评论内容
commentedUserId:this.commentedUserId ,//被评论人ID parentId:this.parentId//上级评论ID
parentId:this.parentId,//上级评论ID
createDate:this.articleInfo.createDate//动态发布时间
} }
comment(params).then(res=>{ comment(params).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment