Commit 1ac3b2a9 authored by 罗林杰's avatar 罗林杰

修改bug

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