|
|
@@ -295,8 +295,22 @@ |
|
|
|
<span class="text-[#71717A]">{{ |
|
|
|
t("products.categoryTitle") |
|
|
|
}}</span> |
|
|
|
<span class="text-white font-medium" |
|
|
|
>{{ product.category |
|
|
|
}}<template v-if="product.tag"> / {{ |
|
|
|
product.tag |
|
|
|
}}</template></span |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
v-if="product.tag" |
|
|
|
class="flex justify-between items-center py-2 border-b border-zinc-800" |
|
|
|
> |
|
|
|
<span class="text-[#71717A]">{{ |
|
|
|
t("products.seriesTitle") |
|
|
|
}}</span> |
|
|
|
<span class="text-white font-medium">{{ |
|
|
|
product.category |
|
|
|
product.series?.join(" / ") |
|
|
|
}}</span> |
|
|
|
</div> |
|
|
|
<div |
|
|
@@ -453,6 +467,8 @@ interface Product { |
|
|
|
gallery: string[]; |
|
|
|
body: string; |
|
|
|
content?: any; |
|
|
|
tag?: string; |
|
|
|
series?: string[]; |
|
|
|
meta?: { |
|
|
|
series?: string[]; |
|
|
|
name?: string; |
|
|
@@ -533,6 +549,8 @@ const product = computed<Product | null>(() => { |
|
|
|
gallery: Array.isArray(meta.gallery) ? meta.gallery : [], |
|
|
|
body: productContent.value.body || "", |
|
|
|
content: productContent.value, |
|
|
|
tag: meta.tag || "", |
|
|
|
series: Array.isArray(meta.series) ? meta.series : [], |
|
|
|
meta: { |
|
|
|
series: Array.isArray(meta.series) ? meta.series : [], |
|
|
|
name: String(meta.name || ""), |