bugfix: use static references to images so nuxt generate knows about them

This commit is contained in:
Settel 2022-09-25 17:22:26 +02:00
parent 61514f1234
commit fb8adade60

View File

@ -1,5 +1,10 @@
<template>
<img class="icon" :src="`/assets/icons/${name}.svg`" />
<img v-if="name === 'add'" class="icon" src="/assets/icons/add.svg" />
<img v-if="name === 'crown'" class="icon" src="/assets/icons/crown.svg" />
<img v-if="name === 'edit-white'" class="icon" src="/assets/icons/edit-white.svg" />
<img v-if="name === 'edit'" class="icon" src="/assets/icons/edit.svg" />
<img v-if="name === 'reload'" class="icon" src="/assets/icons/reload.svg" />
<img v-if="name === 'trash'" class="icon" src="/assets/icons/trash.svg" />
</template>
<script setup lang="ts">