fix(nuxt): update app.vue
add `.value` to the end of computed value accesses
This commit is contained in:
parent
ed4536fa91
commit
40524941c6
5
app.vue
5
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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user