changed page param logic
This commit is contained in:
@@ -36,7 +36,7 @@ const filters = computed(() => {
|
||||
in_stock: params.in_stock ?? false,
|
||||
has_discount: params.has_discount ?? false,
|
||||
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
|
||||
:items="paginationData"
|
||||
:total="data.count"
|
||||
:per-page="15"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user