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