Skip to content

Commit bf83f4e

Browse files
authored
Merge pull request #389 from vuejs-jp/fix/add-baseurl
fix: fix store src & add basePath on ticket
2 parents 6099f40 + 66d0ad3 commit bf83f4e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

apps/web/app/components/StorePageSection.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { endedPurchaseStore, storeUrl } from '~/utils/constants'
66
import { useWithBase } from '#imports'
77
88
const { translate: t } = useTranslation()
9+
const withBase = useWithBase()
910
1011
const products: Product[] = [
1112
{
@@ -99,7 +100,7 @@ const products: Product[] = [
99100
100101
const productsWithBase = products.map((product) => ({
101102
...product,
102-
src: useWithBase(product.src),
103+
src: withBase(product.src),
103104
}))
104105
</script>
105106

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

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<script setup lang="ts">
2-
import { useI18n } from '#imports'
2+
import { useI18n, useWithBase } from '#imports'
33
import { endedApplyEarly, endedApplyHandson, endedApplyNormal, ticketUrl } from '~/utils/constants'
44
55
const { t } = useI18n()
6+
const withBase = useWithBase()
67
78
const ticketCards = {
89
ippan: {
@@ -57,7 +58,7 @@ const ticketCards = {
5758
<div class="ticket-cards-container">
5859
<VFTicketCard
5960
:title="ticketCards.ippan.title"
60-
:img-src="ticketCards.ippan.imgSrc"
61+
:img-src="withBase(ticketCards.ippan.imgSrc)"
6162
:img-alt="ticketCards.ippan.imgAlt"
6263
:is-close="endedApplyNormal"
6364
>
@@ -100,7 +101,9 @@ const ticketCards = {
100101
</div>
101102
<div v-else class="early-purchase">
102103
<span class="cost">
103-
<template v-if="!endedApplyNormal">{{ $t('ticket.card.ippanParty.regular') }}</template>
104+
<template v-if="!endedApplyNormal">{{
105+
$t('ticket.card.ippanParty.regular')
106+
}}</template>
104107
<s v-else>{{ $t('ticket.card.ippanParty.regular') }}</s>
105108
</span>
106109
<span class="cost-details">
@@ -143,7 +146,9 @@ const ticketCards = {
143146
>
144147
<div class="ticket-details individual-sponsor-details">
145148
<div class="cost">
146-
<template v-if="!endedApplyNormal">{{ $t('ticket.card.individualSponsor.cost') }}</template>
149+
<template v-if="!endedApplyNormal">{{
150+
$t('ticket.card.individualSponsor.cost')
151+
}}</template>
147152
<s v-else>{{ $t('ticket.card.individualSponsor.cost') }}</s>
148153
</div>
149154
<div class="cost-details">

0 commit comments

Comments
 (0)