2025-08-06 14:31:16 +02:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<!-- Redirect to dashboard if authenticated, otherwise to login -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2025-08-07 12:28:41 +02:00
|
|
|
const { isAuthenticated } = useAuth();
|
2025-08-06 14:31:16 +02:00
|
|
|
|
|
|
|
|
// Redirect based on authentication status
|
2025-08-07 12:28:41 +02:00
|
|
|
await navigateTo(isAuthenticated.value ? '/dashboard' : '/login');
|
2025-08-06 14:31:16 +02:00
|
|
|
</script>
|