| | |
| | | import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component'; |
| | | import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component'; |
| | | import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component'; |
| | | import { ReportComponent } from './report/report.component'; |
| | | import { UserLoginComponent } from 'app/routes/passport/login/login.component'; |
| | | |
| | | |
| | |
| | | { path: 'devices', loadChildren: './devices/devices.module#DevicesModule' }, |
| | | { path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' }, |
| | | { path: 'systems', loadChildren: './systems/systems.module#SystemsModule' }, |
| | | { path: 'reports', loadChildren: './reports/reports.module#ReportsModule' }, |
| | | { path: 'analysis', loadChildren: './analysis/analysis.module#AnalysisModule' }, |
| | | ] |
| | | }, // passport |
| | | { |
| | | path: 'passport', |
| | | component: LayoutPassportComponent, |
| | | children: [ |
| | | { path: 'login', component: UserLoginComponent } |
| | | {data: {title: '登录页面'}, path: 'login', component: UserLoginComponent } |
| | | ] |
| | | }, // passport |
| | | { |
| | | path: 'report', |
| | | component: ReportComponent |
| | | }, |
| | | { path: '**', redirectTo: 'dashboard' } |
| | | { path: '**', redirectTo: 'passport/login' } |
| | | ]; |
| | | |
| | | @NgModule({ |