refactor(pages): add title to login page
This commit is contained in:
		
							parent
							
								
									af1e08227d
								
							
						
					
					
						commit
						e28f6b6974
					
				| @ -12,6 +12,9 @@ | ||||
| 		}, | ||||
| 		middleware: ["auth"], | ||||
| 	}); | ||||
| 	useHead({ | ||||
| 		title: "Log In", | ||||
| 	}); | ||||
| 
 | ||||
| 	const formState = reactive<FormState>({ | ||||
| 		username: "", | ||||
| @ -26,7 +29,7 @@ | ||||
| 			const { data } = useAuth(); | ||||
| 			darkRef.value = data.value.user.profile.nightMode; | ||||
| 			if (darkRef.value) document.body.dataset.theme = "dark"; | ||||
| 			await navigateTo(); | ||||
| 			await navigateTo("/"); | ||||
| 		} catch (e: any) { | ||||
| 			if (e.data) { | ||||
| 				notification["error"]({ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user