changed page param logic

This commit is contained in:
Mamalizz
2025-06-04 19:14:04 +03:30
parent a3e76e5073
commit aaa0044ed6
+2 -1
View File
@@ -36,7 +36,7 @@ const filters = computed(() => {
in_stock: params.in_stock ?? false, in_stock: params.in_stock ?? false,
has_discount: params.has_discount ?? false, has_discount: params.has_discount ?? false,
category: Array.isArray(route.params.slug) ? route.params.slug[1] ?? undefined : undefined, category: Array.isArray(route.params.slug) ? route.params.slug[1] ?? undefined : undefined,
page: params.page ?? 1, page: route.query["page"] ?? 1,
}; };
}); });
@@ -153,6 +153,7 @@ watch(
<Pagination <Pagination
:items="paginationData" :items="paginationData"
:total="data.count" :total="data.count"
:per-page="15"
/> />
</div> </div>
</div> </div>