From 8a069ac746bb4687e206a81b513d02951e422f2f Mon Sep 17 00:00:00 2001 From: genj11 Date: Tue, 1 Apr 2025 17:16:57 +0900 Subject: [PATCH] fix: add basePath on store menu src --- apps/web/app/components/StorePageSection.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/web/app/components/StorePageSection.vue b/apps/web/app/components/StorePageSection.vue index 068a3e39..fae99a34 100644 --- a/apps/web/app/components/StorePageSection.vue +++ b/apps/web/app/components/StorePageSection.vue @@ -3,6 +3,7 @@ import { useTranslation } from '~/composables/useTranslation' import type { Product } from '@vuejs-jp/model' import MarkDownText from '~/components/MarkDownText.vue' import { endedPurchaseStore, storeUrl } from '~/utils/constants' +import { useWithBase } from '#imports' const { translate: t } = useTranslation() @@ -95,6 +96,11 @@ const products: Product[] = [ weight: t('store.weight.approximately_5kg'), }, ] + +const productsWithBase = products.map((product) => ({ + ...product, + src: useWithBase(product.src), +}))