瀏覽代碼

Merge pull request #203 from JeremLopes/dev

Fix: Pagination
Ahmad Kholid 3 年之前
父節點
當前提交
09f6faa631
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);