Skip to content

Commit b6fd8c3

Browse files
committed
fix: add basePath on NamecardSection
1 parent bb2fe4c commit b6fd8c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/app/components/ticket/NamecardSection.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<script setup lang="ts">
22
import { useLocaleCurrent } from '~/composables/useLocaleCurrent'
33
import { endedApplyNormal, endedCreateNamecard, ticketUrl } from '~/utils/constants'
4+
import { useWithBase } from '#imports'
45
56
const { locale: currentLocale } = useLocaleCurrent()
7+
const basePath = useWithBase()
68
</script>
79

810
<template>
@@ -25,7 +27,7 @@ const { locale: currentLocale } = useLocaleCurrent()
2527

2628
<div class="content-wrapper">
2729
<NuxtImg
28-
:src="'/namecard/namecard-samples.png'"
30+
:src="basePath('/namecard/namecard-samples.png')"
2931
alt="test"
3032
width="596"
3133
loading="lazy"

0 commit comments

Comments
 (0)