From be303f4e6ebb0e679c44aaed628476401fc905d0 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Fri, 02 Mar 2018 14:30:32 +0800 Subject: [PATCH] debug --- src/app/routes/routes-routing.module.ts | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts index 918d7de..4cb980b 100644 --- a/src/app/routes/routes-routing.module.ts +++ b/src/app/routes/routes-routing.module.ts @@ -10,6 +10,7 @@ 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'; @@ -29,16 +30,21 @@ { 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' }, ] }, // 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({ -- Gitblit v1.8.0