fixed
This commit is contained in:
@@ -12,7 +12,7 @@ export const redirects = [
|
||||
const userData = useCookie('userData')
|
||||
const userRole = userData.value?.role
|
||||
if (userRole === 'admin')
|
||||
return { name: 'dashboards-crm' }
|
||||
return { name: 'admin-dashboard' }
|
||||
if (userRole === 'client')
|
||||
return { name: 'access-control' }
|
||||
|
||||
@@ -29,9 +29,36 @@ export const redirects = [
|
||||
name: 'pages-account-settings',
|
||||
redirect: () => ({ name: 'pages-account-settings-tab', params: { tab: 'account' } }),
|
||||
},
|
||||
|
||||
]
|
||||
export const routes = [
|
||||
// Email filter
|
||||
{
|
||||
path: '/admin/dashboard',
|
||||
name: 'admin-dashboard',
|
||||
component: () => import('@/pages/dashboards/crm.vue'),
|
||||
},
|
||||
{
|
||||
path: '/admin/patients',
|
||||
name: 'admin-patients',
|
||||
component: () => import('@/pages/patients/patients.vue'),
|
||||
},
|
||||
{
|
||||
path: '/admin/providers',
|
||||
name: 'admin-providers',
|
||||
component: () => import('@/pages/providers/providers.vue'),
|
||||
},
|
||||
{
|
||||
path: '/admin/labs',
|
||||
name: 'admin-labs',
|
||||
component: () => import('@/pages/labs/labs.vue'),
|
||||
},
|
||||
{
|
||||
path: '/admin/medicines',
|
||||
name: 'admin-medicines',
|
||||
component: () => import('@/pages/medicines/medicines.vue'),
|
||||
},
|
||||
|
||||
{
|
||||
path: '/apps/email/filter/:filter',
|
||||
name: 'apps-email-filter',
|
||||
|
@@ -156,6 +156,10 @@
|
||||
"Dashboard": "Dashboard",
|
||||
"Fleet": "Fleet",
|
||||
"Widgets": "Widgets",
|
||||
"Patients": "Patients",
|
||||
"Providers": "Providers",
|
||||
"Labs": "Labs",
|
||||
"Medicines": "Medicines",
|
||||
"5": "5",
|
||||
"10": "10",
|
||||
"20": "20",
|
||||
|
Reference in New Issue
Block a user