Commit b4d4c0b1 authored by 罗林杰's avatar 罗林杰

修改bug

parent 814270b4
...@@ -157,11 +157,9 @@ export default{ ...@@ -157,11 +157,9 @@ export default{
//设置上级评论id 加这个逻辑是为了保证永远只有两层结构 //设置上级评论id 加这个逻辑是为了保证永远只有两层结构
if (value.parentId == null){ if (value.parentId == null){
//点击的第一层评论 //点击的第一层评论
this.parentId = value.businessId
this.commentId = value.businessId this.commentId = value.businessId
} else { } else {
//点击的第二层评论 //点击的第二层评论
this.parentId = value.parentId
this.commentId = value.businessId this.commentId = value.businessId
} }
}, },
...@@ -257,7 +255,6 @@ export default{ ...@@ -257,7 +255,6 @@ export default{
const params = { const params = {
articleId: this.articleInfo.businessId,//动态id articleId: this.articleInfo.businessId,//动态id
commentContent:value,//评论内容 commentContent:value,//评论内容
parentId:this.parentId,//上级评论ID
commentId: this.commentId commentId: this.commentId
} }
comment(params).then(res=>{ comment(params).then(res=>{
......
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