diff --git a/app.vue b/app.vue index 1cd2af5..a14aada 100644 --- a/app.vue +++ b/app.vue @@ -8,14 +8,13 @@ const { data } = await useAuth(); const dop = data?.value as any; - let darkBool = dop?.user?.profile?.nightMode || false; - console.log("l->", useNuxtApp().$loaded); + let darkBool = ref(dop?.user?.profile?.nightMode || false); // provide("user", ref(dop?.user || null)); provide("dark", darkBool); useHead({ bodyAttrs: { "data-theme": computed(() => { - return darkBool ? "dark" : undefined; + return darkBool.value ? "dark" : undefined; }).value, }, titleTemplate: (title) =>