We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 115bc8c + 18881ee commit 38b9b46Copy full SHA for 38b9b46
apps/web/app/components/event/EventMultipleAssets.vue
@@ -1,12 +1,14 @@
1
<script setup lang="ts">
2
import type { Event } from '@vuejs-jp/model'
3
+import { useWithBase } from '#imports'
4
5
interface EventMultipleAssetsProps {
6
titleList: Extract<Event, 'vuejs-handson' | 'cocktail-bash'>[]
7
imgHeight?: number
8
}
9
10
const props = defineProps<EventMultipleAssetsProps>()
11
+const withBase = useWithBase()
12
</script>
13
14
<template>
@@ -19,7 +21,7 @@ const props = defineProps<EventMultipleAssetsProps>()
19
21
<NuxtImg
20
22
v-for="(title, key) in titleList"
23
:key
- :src="`/event/${title}-${key + 1}.png`"
24
+ :src="withBase(`/event/${title}-${key + 1}.png`)"
25
alt=""
26
width="792"
27
height="512"
0 commit comments