diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 12941ca..60b38e0 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -15,7 +15,6 @@ const { data } = await api.status(); if (data) { - console.log(data); username.value = "demo@example.com"; password.value = "demo"; } @@ -223,6 +222,9 @@ + diff --git a/frontend/pages/profile.vue b/frontend/pages/profile.vue index a564844..ed031a2 100644 --- a/frontend/pages/profile.vue +++ b/frontend/pages/profile.vue @@ -10,6 +10,13 @@ title: "Homebox | Profile", }); + const pubApi = usePublicApi(); + const { data: status } = useAsyncData(async () => { + const { data } = await pubApi.status(); + + return data; + }); + const { setTheme } = useTheme(); type ThemeOption = { @@ -341,6 +348,9 @@ +