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

use explicit keys

parent 5a75ef7f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}}</a> }}</a>
</div> </div>
<ul class="comment-children" v-show="open"> <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> </ul>
</li> </li>
</template> </template>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<spinner :show="loading"></spinner> <spinner :show="loading"></spinner>
</p> </p>
<ul v-if="!loading" class="comment-children"> <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> </ul>
</div> </div>
</template> </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