From 5c1577b6f7be92ed38d4ccd4cae2e51461cc158b Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Fri, 13 Jul 2018 10:20:12 +0800 Subject: [PATCH] 注销错误,打开mock --- src/app/routes/routes-routing.module.ts | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts index 21f6cda..7cec853 100644 --- a/src/app/routes/routes-routing.module.ts +++ b/src/app/routes/routes-routing.module.ts @@ -13,6 +13,7 @@ import { ReportComponent } from './report/report.component'; import { UserLoginComponent } from 'app/routes/passport/login/login.component'; +import { ForecastingWarningComponent } from './forecasting-warning/forecasting-warning.component'; import { PollutionManagementComponent } from 'app/routes/pollution/management/management.component'; const routes: Routes = [ @@ -20,7 +21,11 @@ path: '', component: LayoutDefaultComponent, children: [ - { path: '', redirectTo: 'dashboard/workplace', pathMatch: 'full' }, + { path: "", redirectTo: "home-page", pathMatch: "full" }, + { + path: "home-page", + loadChildren: "./home-page/home-page.module#HomePageModule" + }, { 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' } }, @@ -32,6 +37,7 @@ { path: 'systems', loadChildren: './systems/systems.module#SystemsModule' }, { path: 'reports', loadChildren: './reports/reports.module#ReportsModule' }, + { path: 'forecasting-warning', component: ForecastingWarningComponent }, { path: 'pollution/management', component: PollutionManagementComponent } ] }, // passport -- Gitblit v1.8.0