mirror of https://github.com/halo-dev/halo-admin
Fixed #28
parent
11b9e2c119
commit
24ebf4199d
|
@ -408,7 +408,11 @@ export default {
|
|||
this.selectComment = comment
|
||||
this.replyCommentVisible = true
|
||||
this.replyComment.parentId = comment.id
|
||||
if (this.type === 'posts') {
|
||||
this.replyComment.postId = comment.post.id
|
||||
} else {
|
||||
this.replyComment.postId = comment.sheet.id
|
||||
}
|
||||
},
|
||||
handleCreateClick() {
|
||||
commentApi.create(this.type, this.replyComment).then(response => {
|
||||
|
|
Loading…
Reference in New Issue