Remove suspense product comments
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
import ChatButton from "~/components/product/ChatBox/ChatButton.vue";
|
||||
import useGetProduct from "~/composables/api/product/useGetProduct";
|
||||
import useGetComments from "~/composables/api/product/useGetComments";
|
||||
import ProductsSlider from "~/components/global/product-detail/ProductsSlider.vue";
|
||||
|
||||
// state
|
||||
@@ -11,10 +10,8 @@ import ProductsSlider from "~/components/global/product-detail/ProductsSlider.vu
|
||||
const route = useRoute();
|
||||
|
||||
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);
|
||||
|
||||
useSeoMeta({
|
||||
title: `محصول ${product.value?.name}`,
|
||||
@@ -45,7 +42,6 @@ provide("productVariant", {
|
||||
// ssr
|
||||
|
||||
const productResponse = await suspenseProduct();
|
||||
// const commentsResponse = await suspenseComments();
|
||||
|
||||
if (productResponse.isError ) {
|
||||
throw createError({
|
||||
|
||||
Reference in New Issue
Block a user