Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 资讯详情页置顶评论和普通评论中出现重复的键值
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed May 5, 2018
1 parent f8501da commit 96ceef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page/news/newsDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
v-if="news.audit_status===0"
v-for="(comment) in pinnedCom"
:pinned="true"
:key="comment.id"
:key="`pinned-${comment.id}`"
:comment="comment"/>
<comment-item
v-if="news.audit_status===0"
@click="replyComment"
v-for="(comment) in comments"
:key="comment.id"
:key="`comment-${comment.id}`"
:comment="comment"/>

<div v-if="news.audit_status===0" class="m-box m-aln-center m-justify-center load-more-box">
Expand Down

0 comments on commit 96ceef5

Please sign in to comment.