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
+4 -1
View File
@@ -3,6 +3,7 @@ import { PRODUCT_RANGE } from "~/constants";
export const useAppParams = () => {
// state
const route = useRoute();
const { y } = useWindowScroll({ behavior: "smooth" });
const slug = useRouteParams<string | undefined>("slug");
@@ -58,7 +59,9 @@ export const useAppParams = () => {
watch(
() => page.value,
() => {
y.value = 0;
if (route.name !== "product-id") {
y.value = 0;
}
},
);