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.

25 lines
340 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');
}
}
);
</script>