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