From dae29d980f7b6f4b10851eb39033c7dc084c5aa9 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 3 Oct 2024 11:23:18 +0700 Subject: [PATCH] fix: wrong calc --- src/pages/05_quotation/MainPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 594045e0..340491b1 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -446,7 +446,7 @@ onMounted(async () => { if (ret) { quotationData.value = ret.result; - quotationPageMax.value = Math.floor(ret.total / quotationPageSize.value); + quotationPageMax.value = Math.ceil(ret.total / quotationPageSize.value); } } @@ -472,7 +472,7 @@ async function fetchQuotationList() { if (ret) { quotationData.value = ret.result; - quotationPageMax.value = Math.floor(ret.total / quotationPageSize.value); + quotationPageMax.value = Math.ceil(ret.total / quotationPageSize.value); } flowStore.rotate();