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 { data } = await useAuth();
const dop = data?.value as any; const dop = data?.value as any;
let darkBool = dop?.user?.profile?.nightMode || false; let darkBool = ref(dop?.user?.profile?.nightMode || false);
console.log("l->", useNuxtApp().$loaded);
// provide("user", ref(dop?.user || null)); // provide("user", ref(dop?.user || null));
provide("dark", darkBool); provide("dark", darkBool);
useHead({ useHead({
bodyAttrs: { bodyAttrs: {
"data-theme": computed(() => { "data-theme": computed(() => {
return darkBool ? "dark" : undefined; return darkBool.value ? "dark" : undefined;
}).value, }).value,
}, },
titleTemplate: (title) => titleTemplate: (title) =>