diff --git a/components/comments/comments.vue b/components/comments/comments.vue index c289ec7..50159c4 100644 --- a/components/comments/comments.vue +++ b/components/comments/comments.vue @@ -478,12 +478,11 @@ }, //回复的事件 openInput(commIdx,replyIdx){ - this.curCommentIndex=commIdx; let comm=this.list[commIdx]; this.replyInfo.commentId=comm.id; - if(replyIdx){ + if(replyIdx !== undefined){ this.curReplyIndex=replyIdx; let re=comm.replyList[replyIdx]; this.replyInfo.parentId=re.id;