Explorar o código

Fix: Pagination

Jérémy Lopes %!s(int64=3) %!d(string=hai) anos
pai
achega
ea0fb6a4ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/ui/UiPagination.vue

+ 1 - 1
src/components/ui/UiPagination.vue

@@ -63,7 +63,7 @@ const emit = defineEmits(['update:modelValue', 'paginate']);
 const { t } = useI18n();
 
 const inputEl = ref(null);
-const maxPage = computed(() => Math.round(props.records / props.perPage));
+const maxPage = computed(() => Math.round(props.records / props.perPage) + 1);
 
 function emitEvent(page) {
   emit('update:modelValue', page);