From 24ebf4199d64e211a02ddc2ea765a777b7e2e34d Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sun, 30 Jun 2019 13:36:51 +0800 Subject: [PATCH] Fixed #28 --- src/views/comment/components/CommentTab.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/comment/components/CommentTab.vue b/src/views/comment/components/CommentTab.vue index c7da82f4..584081c1 100644 --- a/src/views/comment/components/CommentTab.vue +++ b/src/views/comment/components/CommentTab.vue @@ -408,7 +408,11 @@ export default { this.selectComment = comment this.replyCommentVisible = true 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() { commentApi.create(this.type, this.replyComment).then(response => {