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', })