Commit 6f0c0fef authored by Evan You's avatar Evan You

use explicit keys

parent 5a75ef7f
......@@ -13,7 +13,7 @@
}}</a>
</div>
<ul class="comment-children" v-show="open">
<comment v-for="id in comment.kids" :id="id"></comment>
<comment v-for="id in comment.kids" :key="id" :id="id"></comment>
</ul>
</li>
</template>
......
......@@ -20,7 +20,7 @@
<spinner :show="loading"></spinner>
</p>
<ul v-if="!loading" class="comment-children">
<comment v-for="id in item.kids" :id="id"></comment>
<comment v-for="id in item.kids" :key="id" :id="id"></comment>
</ul>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment