fix(nuxt): update app.vue

add `.value` to the end of computed value accesses
This commit is contained in:
parent ed4536fa91
commit 40524941c6
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -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) =>