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 { 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) => | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user