From 695b75c9446f6d0fa61df3f032429f3195a1d0c8 Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:15:22 +0900 Subject: [PATCH] fix log --- packages/frontend/src/components/MkPagingButtons.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkPagingButtons.vue b/packages/frontend/src/components/MkPagingButtons.vue index bd8dbdccd8..fe59efd83a 100644 --- a/packages/frontend/src/components/MkPagingButtons.vue +++ b/packages/frontend/src/components/MkPagingButtons.vue @@ -58,9 +58,11 @@ const buttonRanges = computed(() => Array.from({ length: buttonCount.value }, (_ const prevDotVisible = computed(() => (current.value - 1 > buttonCountHalf.value) && (max.value > buttonCount.value)); const nextDotVisible = computed(() => (current.value < max.value - buttonCountHalf.value) && (max.value > buttonCount.value)); -console.log(current.value, max.value, buttonCount.value, buttonCountHalf.value); -console.log(current.value < max.value - buttonCountHalf.value); -console.log(max.value > buttonCount.value); +if (_DEV_) { + console.log('[MkPagingButtons]', current.value, max.value, buttonCount.value, buttonCountHalf.value); + console.log('[MkPagingButtons]', current.value < max.value - buttonCountHalf.value); + console.log('[MkPagingButtons]', max.value > buttonCount.value); +} function onNumberButtonClicked(pageNumber: number) { emit('pageChanged', pageNumber);