edit
This commit is contained in:
@ -10,6 +10,7 @@ import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
// layout
|
||||
import { LayoutProComponent } from '@brand';
|
||||
import { EATokenGuard } from '@core';
|
||||
import { environment } from '@env/environment';
|
||||
|
||||
// dashboard pages
|
||||
@ -19,6 +20,8 @@ const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: LayoutProComponent,
|
||||
canActivate: [EATokenGuard],
|
||||
canActivateChild: [EATokenGuard],
|
||||
children: [
|
||||
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
||||
{ path: 'dashboard', component: DashboardComponent },
|
||||
@ -38,6 +41,7 @@ const routes: Routes = [
|
||||
{ path: 'supply-management', loadChildren: () => import('./supply-management/supply-management.module').then((m) => m.SupplyManagementModule) },
|
||||
{ path: 'order-management', loadChildren: () => import('./order-management/order-management.module').then((m) => m.OrderManagementModule) },
|
||||
{ path: 'waybill-management', loadChildren: () => import('./waybill-management/waybill-management.module').then((m) => m.WaybillManagementModule) },
|
||||
{ path: 'financial-management', loadChildren: () => import('./financial-management/financial-management.module').then((m) => m.FinancialManagementModule) },
|
||||
]
|
||||
},
|
||||
// passport
|
||||
|
||||
Reference in New Issue
Block a user