Skip to content

Commit b0c6411

Browse files
committed
fix: add basePath on EventAsset
1 parent b6fd8c3 commit b0c6411

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/app/components/event/EventAsset.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { Event } from '@vuejs-jp/model'
3+
import { useWithBase } from '#imports'
34
45
interface EventAssetProps {
56
title: Extract<
@@ -10,11 +11,12 @@ interface EventAssetProps {
1011
}
1112
1213
const props = defineProps<EventAssetProps>()
14+
const withBase = useWithBase()
1315
</script>
1416

1517
<template>
1618
<NuxtImg
17-
:src="`/event/${title}.png`"
19+
:src="withBase(`/event/${title}.png`)"
1820
alt=""
1921
class="eventcard-image"
2022
:style="{ marginTop: `${marginTop}px` }"

0 commit comments

Comments
 (0)