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> </p>
<div class="mb-3"> <div class="mb-3">
<SquareButton <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"> :link="link.url">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/> <Icon :v="link.icon" :set="link.iconSet || 'l'"/>
</SquareButton> </SquareButton>

View File

@ -6,7 +6,7 @@
</h2> </h2>
<section> <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" :href="link.url" target="_blank" rel="noopener"
class="btn btn-outline-primary border m-1"> class="btn btn-outline-primary border m-1">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/> <Icon :v="link.icon" :set="link.iconSet || 'l'"/>
@ -29,7 +29,7 @@
</h3> </h3>
<p><T>support.description</T></p> <p><T>support.description</T></p>
<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" :href="link.url" target="_blank" rel="noopener"
class="btn btn-outline-primary border m-1"> class="btn btn-outline-primary border m-1">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/> <Icon :v="link.icon" :set="link.iconSet || 'l'"/>