Files
leim-tools/pages/profile.vue
Alexis 4a4433dcdd Moved Sidebar to top of app
This prevents flicker and stops useless rerender of the component
2024-06-07 19:35:49 +02:00

26 lines
377 B
Vue

<script lang="ts" setup>
const user = useSupabaseUser()
useHead({
title: 'Profil'
})
definePageMeta({
middleware: ['auth-guard']
})
// Redirect user back home when they log out on the page
watch(user, (n, _o) => {
if (!n) {
navigateTo('/')
}
})
const { setCurrentMenu } = useUiStore()
setCurrentMenu([])
</script>
<template>
<ProfileDashboard />
</template>