diff --git a/src/enums/index.js b/src/enums/index.js index a6b33b9..cd8ad6f 100644 --- a/src/enums/index.js +++ b/src/enums/index.js @@ -222,4 +222,5 @@ export const ROLE_HOME_ROUTES = Object.freeze({ admin: 'admin-dashboard', counselor: 'counselor-dashboard', missionary: 'missionary-dashboard', + student: 'student-dashboard', }) diff --git a/src/features/landing/pages/LandingPage.vue b/src/features/landing/pages/LandingPage.vue deleted file mode 100644 index ec23d25..0000000 --- a/src/features/landing/pages/LandingPage.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - diff --git a/src/features/landing/router.js b/src/features/landing/router.js deleted file mode 100644 index 65b0456..0000000 --- a/src/features/landing/router.js +++ /dev/null @@ -1,8 +0,0 @@ -export default [ - { - path: '/', - name: 'home', - component: () => import('@/features/landing/pages/LandingPage.vue'), - meta: { public: true, layout: 'public', title: 'صفحه اصلی' }, - }, -] diff --git a/src/router/index.js b/src/router/index.js index 0a5f50f..346141a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,7 +7,7 @@ const routes = Object.values(routeModules).flatMap((mod) => mod.default || []) const router = createRouter({ history: createWebHistory(), - routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'home' } }], + routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'login' } }], scrollBehavior(to, from, savedPosition) { if (savedPosition) return savedPosition if (to.hash) return { el: to.hash }