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