From 86709d24b6f78b2b2f1c0881fca87068cb617eac Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 19 Mar 2025 11:28:21 +0100 Subject: [PATCH] Testing 5 --- app/components/home/Stats.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/home/Stats.vue b/app/components/home/Stats.vue index f40ffc7..cb1bd95 100644 --- a/app/components/home/Stats.vue +++ b/app/components/home/Stats.vue @@ -5,9 +5,7 @@ import { usePrecision } from '@vueuse/math' const { locale, locales } = useI18n() const currentLocale = computed(() => locales.value.find(l => l.code === locale.value)) -const { data: stats } = await useFetch('/api/stats') -console.log(stats.value) -console.log(stats._value) +const { data: stats } = await useAsyncData('stats', () => $fetch('/api/stats')) const { t } = useI18n({ useScope: 'local', })