数据可视化大屏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
1.3KB

  1. import { Routes } from '@angular/router';
  2. import { startPageGuard } from '@core';
  3. import { authSimpleCanActivate, authSimpleCanActivateChild } from '@delon/auth';
  4. import { DashboardComponent } from './dashboard/dashboard.component';
  5. import { LayoutBasicComponent, LayoutBlankComponent } from '../layout';
  6. import { DataVHomeComponent } from './data-v/home/home.component';
  7. import { DataVWorkstationComponent } from './data-v/workstation/workstation.component';
  8. export const routes: Routes = [
  9. {
  10. path: 'home',
  11. component: LayoutBasicComponent,
  12. canActivate: [startPageGuard, authSimpleCanActivate],
  13. canActivateChild: [authSimpleCanActivateChild],
  14. data: {},
  15. children: [
  16. { path: '', redirectTo: 'dashboard', pathMatch: 'full' },
  17. { path: 'sys', loadChildren: () => import('./sys/routes').then(m => m.routes) }
  18. ]
  19. },
  20. {
  21. path: '',
  22. component: DataVHomeComponent,
  23. children: [
  24. { path: '', component: DataVWorkstationComponent },
  25. { path: 'data-v', loadChildren: () => import('./data-v/routes').then(m => m.routes) }
  26. ]
  27. },
  28. { path: '', loadChildren: () => import('./passport/routes').then(m => m.routes) },
  29. { path: 'exception', loadChildren: () => import('./exception/routes').then(m => m.routes) },
  30. { path: '**', redirectTo: 'exception/404' }
  31. ];