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 => {