mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawki działania paginacji
This commit is contained in:
@@ -297,7 +297,8 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user