mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-05 22:38:11 +00:00
Poprawki działania paginacji
This commit is contained in:
@@ -297,7 +297,8 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
watch(paginatorPageCount, (value) => {
|
watch(paginatorPageCount, (value) => {
|
||||||
if (currentPage.value >= value) currentPage.value = paginatorPageCount.value - 1;
|
if (currentPage.value >= value)
|
||||||
|
currentPage.value = paginatorPageCount.value - 1 < 0 ? 0 : paginatorPageCount.value - 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user