From 7a9cedc65c1a9f2d8ca4513206767cdd4dd94246 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 13 Jul 2018 11:06:02 +0800
Subject: [PATCH] 查询条件 默认设置 token 过期替换
---
src/app/routes/routes.module.ts | 39 +++++++++++++++++++++++++++++----------
1 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/src/app/routes/routes.module.ts b/src/app/routes/routes.module.ts
index bca0d72..2653f7a 100644
--- a/src/app/routes/routes.module.ts
+++ b/src/app/routes/routes.module.ts
@@ -1,11 +1,23 @@
+import { UserLoginComponent } from './passport/login/login.component';
+import { DateService } from '@business/services/util/date.service';
+import { _HttpClient } from '@delon/theme';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
+
import { SharedModule } from '@shared/shared.module';
-import { environment } from '../../environments/environment';
+import { RouteRoutingModule } from './routes-routing.module';
+import { environment } from '@env/environment';
+// dashboard pages
+import { DashboardV1Component } from './dashboard/v1/v1.component';
+import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component';
+import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component';
+import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component';
+import { ForecastingWarningComponent } from './forecasting-warning/forecasting-warning.component';
+import { ReportComponent } from './report/report.component';
+import { PollutionManagementComponent } from './pollution/management/management.component';
-import { routes } from './routes';
-
-
+// Statics
+import 'rxjs/add/observable/throw';
// Operators
import 'rxjs/add/operator/catch';
@@ -17,15 +29,22 @@
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/last';
import 'rxjs/add/operator/delay';
+
@NgModule({
- imports: [
- SharedModule,
- RouterModule.forRoot(routes, { useHash: environment.useHash })
- ],
+ imports: [ SharedModule, RouteRoutingModule ],
declarations: [
+ DashboardV1Component,
+ DashboardAnalysisComponent,
+ DashboardMonitorComponent,
+ DashboardWorkplaceComponent,
+ UserLoginComponent,
+ ReportComponent,
+ ForecastingWarningComponent,
+ PollutionManagementComponent
],
- exports: [
- RouterModule
+ providers: [
+ _HttpClient,
+ DateService
]
})
--
Gitblit v1.8.0