From 40524941c6eea0ab173c5f712f9db8c236b4c645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 28 Dec 2023 19:29:21 -0500 Subject: [PATCH] fix(nuxt): update app.vue add `.value` to the end of computed value accesses --- app.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) =>