diff --git a/pages/dashboard.vue b/pages/dashboard.vue index eefbbce..8e93908 100644 --- a/pages/dashboard.vue +++ b/pages/dashboard.vue @@ -7,6 +7,7 @@ import ModalPendaftaran from '@/components/pendaftaran/ModalPendaftaranV2.vue'; import api from '@/services/api'; import { useAuth } from '~/composables/useAuth'; import { useUserMenuStore } from '~/store/userMenu'; +import { numberFormat } from '~/utils/helpers'; // Check user access to dashboard const { user } = useAuth(); @@ -64,8 +65,8 @@ const years = ref([ ]); const dashboardParams = computed(() => { - if (useAllPeriod.value) return {}; return { + is_all : useAllPeriod.value ? true : false, year: selectedYear.value, month: selectedMonth.value + 1 // API expects 1-12, not 0-11 }; @@ -782,7 +783,7 @@ definePageMeta({