Ajuste rotas, Menus, Layout, Permissãoes UserRoleGuard
This commit is contained in:
@@ -6,10 +6,28 @@ export default {
|
||||
name: 'landing',
|
||||
component: () => import('@/views/pages/Landing.vue')
|
||||
},
|
||||
|
||||
// 404
|
||||
{
|
||||
path: 'pages/notfound',
|
||||
name: 'notfound',
|
||||
component: () => import('@/views/pages/NotFound.vue')
|
||||
},
|
||||
|
||||
// 403 (Acesso negado - RBAC)
|
||||
{
|
||||
path: 'pages/access', // ❗ SEM barra inicial aqui
|
||||
name: 'AccessDenied',
|
||||
component: () => import('@/views/pages/misc/AccessDeniedPage.vue'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
|
||||
// Catch-all (SEMPRE o último)
|
||||
{
|
||||
path: ':pathMatch(.*)*',
|
||||
redirect: { name: 'notfound' }
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user