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.
26 lines
372 B
Vue
26 lines
372 B
Vue
<template>
|
|
<div class="app">
|
|
<Header />
|
|
{{ user?.email }}
|
|
<NuxtLink to="/notes"> Notes </NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
middleware: ['auth'],
|
|
});
|
|
|
|
const router = useRouter();
|
|
const user = useSupabaseUser();
|
|
|
|
watch(
|
|
() => user.value,
|
|
() => {
|
|
if (user.value) {
|
|
router.push('/notes');
|
|
}
|
|
}
|
|
);
|
|
</script>
|