This commit is contained in:
Taric Xin
2021-12-07 19:39:28 +08:00
parent 647b288042
commit b5262f5a26
32 changed files with 1752 additions and 18 deletions

View File

@ -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