You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
382 B
Vue
29 lines
382 B
Vue
<template>
|
|
<App>
|
|
<Header />
|
|
<NuxtLink to="/notes"> Notes </NuxtLink>
|
|
</App>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
middleware: ['auth'],
|
|
})
|
|
|
|
const router = useRouter()
|
|
const user = useSupabaseUser()
|
|
|
|
watch(
|
|
() => user.value,
|
|
() => {
|
|
if (user.value) {
|
|
router.push('/notes')
|
|
}
|
|
}
|
|
)
|
|
|
|
onMounted(() => {
|
|
navigateTo('/notes')
|
|
})
|
|
</script>
|