Fix - Use of index as key in a v-for directive to prevent duplicate key errors (#10)

This commit is contained in:
Beat 2018-06-27 09:48:16 +02:00 committed by Henrique Dias
parent 294efef38c
commit 2bb9171e32
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<i class="material-icons">home</i>
</router-link>
<span v-for="link in breadcrumbs" :key="link.name">
<span v-for="(link, index) in breadcrumbs" :key="index">
<span class="chevron"><i class="material-icons">keyboard_arrow_right</i></span>
<router-link :to="link.url">{{ link.name }}</router-link>
</span>