Fix comment pagination and change show limit to 8 items
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user