From e92b07b84223bd6a70b9c982a477d2ba4f325413 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 13 Mar 2025 13:14:05 +0300 Subject: [PATCH] vue rerender --- composables/api.ts | 3 +- error.vue | 26 ++++----- nuxt.config.ts | 2 +- pages/index.vue | 133 +++++++++++++++++++++++---------------------- 4 files changed, 81 insertions(+), 83 deletions(-) diff --git a/composables/api.ts b/composables/api.ts index 31cbd81..5128897 100644 --- a/composables/api.ts +++ b/composables/api.ts @@ -4,8 +4,9 @@ export function useApiFetch() { const config = useRuntimeConfig() const apiBase = config.public.apiBase const prefix = config.public.apiPrefix - + const fetchData = (path: string, global = false) => { + console.log(`Fetching data for path: ${path}`); const headers = new Headers() headers.set('Referer', config.public.baseUrl) diff --git a/error.vue b/error.vue index 988d557..8b43908 100644 --- a/error.vue +++ b/error.vue @@ -1,40 +1,39 @@