fix: router
Deploy banu-front / deploy (push) Successful in 1m38s

This commit is contained in:
sajjadtalkhabi
2026-07-12 12:16:12 +03:30
parent b592f520ab
commit 8d2aa1c214
4 changed files with 2 additions and 38 deletions
+1
View File
@@ -222,4 +222,5 @@ export const ROLE_HOME_ROUTES = Object.freeze({
admin: 'admin-dashboard',
counselor: 'counselor-dashboard',
missionary: 'missionary-dashboard',
student: 'student-dashboard',
})
@@ -1,29 +0,0 @@
<template>
<div class="landing">
<h1 class="landing__title">سایت اصلی دانشگاه</h1>
<p class="landing__subtitle">در حال توسعه...</p>
</div>
</template>
<script setup></script>
<style lang="scss" scoped>
.landing {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f3f4f6;
&__title {
font-family: var(--font-family-fa);
font-size: 1.5rem;
margin: 0;
}
&__subtitle {
margin-top: 0.5rem;
margin-bottom: 0;
}
}
</style>
-8
View File
@@ -1,8 +0,0 @@
export default [
{
path: '/',
name: 'home',
component: () => import('@/features/landing/pages/LandingPage.vue'),
meta: { public: true, layout: 'public', title: 'صفحه اصلی' },
},
]
+1 -1
View File
@@ -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 }