Skip to content

Commit 38b9b46

Browse files
authored
Merge pull request #387 from vuejs-jp/fix/add-baseurl
fix: add basePath on EventMultipleAssets
2 parents 115bc8c + 18881ee commit 38b9b46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: apps/web/app/components/event/EventMultipleAssets.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<script setup lang="ts">
22
import type { Event } from '@vuejs-jp/model'
3+
import { useWithBase } from '#imports'
34
45
interface EventMultipleAssetsProps {
56
titleList: Extract<Event, 'vuejs-handson' | 'cocktail-bash'>[]
67
imgHeight?: number
78
}
89
910
const props = defineProps<EventMultipleAssetsProps>()
11+
const withBase = useWithBase()
1012
</script>
1113

1214
<template>
@@ -19,7 +21,7 @@ const props = defineProps<EventMultipleAssetsProps>()
1921
<NuxtImg
2022
v-for="(title, key) in titleList"
2123
:key
22-
:src="`/event/${title}-${key + 1}.png`"
24+
:src="withBase(`/event/${title}-${key + 1}.png`)"
2325
alt=""
2426
width="792"
2527
height="512"

0 commit comments

Comments
 (0)