13 lines
294 B
Vue
13 lines
294 B
Vue
<template>
|
|
<div>
|
|
<!-- Redirect to dashboard if authenticated, otherwise to login -->
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const { authenticated } = useAuth();
|
|
|
|
// Redirect based on authentication status
|
|
await navigateTo(authenticated.value ? '/dashboard' : '/login');
|
|
</script>
|