fix vue :key requirement

This commit is contained in:
Avris 2020-10-10 22:42:16 +02:00
parent dac73c91df
commit a09b87a4fd
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
</p>
<div class="mb-3">
<SquareButton
v-for="link in [...config.contact.contacts, ...config.links.socials]"
v-for="link in [...config.contact.contacts, ...config.links.socials]" :key="link.url"
:link="link.url">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/>
</SquareButton>

View File

@ -6,7 +6,7 @@
</h2>
<section>
<a v-for="link in [...config.contact.contacts, ...config.links.socials]"
<a v-for="link in [...config.contact.contacts, ...config.links.socials]" :key="link.url"
:href="link.url" target="_blank" rel="noopener"
class="btn btn-outline-primary border m-1">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/>
@ -29,7 +29,7 @@
</h3>
<p><T>support.description</T></p>
<p>
<a v-for="link in config.support.links"
<a v-for="link in config.support.links" :key="link.url"
:href="link.url" target="_blank" rel="noopener"
class="btn btn-outline-primary border m-1">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/>