Fix comment pagination and change show limit to 8 items

This commit is contained in:
marzban-dev
2026-05-16 19:28:43 +03:30
parent b07336f9f1
commit 1a4fce3e13
4 changed files with 27 additions and 10 deletions
+9 -1
View File
@@ -4,13 +4,15 @@
import ChatButton from "~/components/product/ChatBox/ChatButton.vue";
import useGetProduct from "~/composables/api/product/useGetProduct";
import ProductsSlider from "~/components/global/product-detail/ProductsSlider.vue";
import { useAppParams } from "~/composables/global/useAppParams";
// state
const route = useRoute();
const id = route.params.id as string | undefined;
const { page } = useAppParams();
const { suspense: suspenseProduct, data: product } = useGetProduct(id);
useSeoMeta({
@@ -49,6 +51,12 @@ if (productResponse.isError) {
statusMessage: `error : product ${id} prefetch error`,
});
}
// lifecycle
onMounted(() => {
page.value = 1;
});
</script>
<template>