changed page param logic
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user