From 7f8bc74444b8ddf4ccf07c217b92b044e385de4a Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 14 May 2018 16:40:20 +0800 Subject: [PATCH] 优化 --- src/app/routes/routes-routing.module.ts | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts index 918d7de..f4719f0 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'; @@ -18,27 +19,32 @@ path: '', component: LayoutDefaultComponent, children: [ - { path: '', redirectTo: 'dashboard/v1', pathMatch: 'full' }, + { path: '', redirectTo: 'dashboard/workplace', pathMatch: 'full' }, { path: 'dashboard', redirectTo: 'dashboard/v1', pathMatch: 'full' }, { path: 'dashboard/v1', component: DashboardV1Component, data: { translate: 'dashboard_v1' } }, { path: 'dashboard/analysis', component: DashboardAnalysisComponent, data: { translate: 'dashboard_analysis' } }, { path: 'dashboard/monitor', component: DashboardMonitorComponent, data: { translate: 'dashboard_monitor' } }, { path: 'dashboard/workplace', component: DashboardWorkplaceComponent, data: { translate: 'dashboard_workplace' } }, - { path: 'users', loadChildren: './users/users.module#UsersModule' }, { 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, + data: {title: '������������'} }, - { path: '**', redirectTo: 'dashboard' } + { path: '**', redirectTo: 'passport/login' } ]; @NgModule({ -- Gitblit v1.8.0