This commit is contained in:
marzban-dev
2025-05-23 09:22:00 +03:30
parent 4d8b691842
commit 56370b6f06
+3 -3
View File
@@ -14,7 +14,7 @@ const id = route.params.id as string | undefined;
const page = ref(1);
const { suspense: suspenseProduct, data: product } = useGetProduct(id);
const { suspense: suspenseComments } = useGetComments(id, page);
// const { suspense: suspenseComments } = useGetComments(id, page);
useSeoMeta({
title: `محصول ${product.value?.name}`,
@@ -45,9 +45,9 @@ provide("productVariant", {
// ssr
const productResponse = await suspenseProduct();
const commentsResponse = await suspenseComments();
// const commentsResponse = await suspenseComments();
if (productResponse.isError || commentsResponse.isError) {
if (productResponse.isError ) {
throw createError({
statusCode: 404,
statusMessage: `error : product ${id} prefetch error`,