feat: add admin, company, and student dashboard pages with initial template structure

This commit is contained in:
2025-10-21 14:13:14 +02:00
parent 6a70d45b31
commit 18b76523e4
4 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
<template>
<div></div>
</template>

View File

@@ -0,0 +1,3 @@
<template>
<div></div>
</template>

View File

@@ -1,3 +1,20 @@
<script setup lang="ts">
import { Role } from '~/types/role';
import type { User } from '~/types/user';
const user = useSanctumUser<User>();
const router = useRouter();
onMounted(() => {
if (user.value?.role === Role.ADMIN) {
router.push('/dashboard/admin');
} else if (user.value?.role === Role.STUDENT) {
router.push('/dashboard/student');
}
});
</script>
<template>
<div></div>
<div>
</div>
</template>

View File

@@ -0,0 +1,3 @@
<template>
<div></div>
</template>