From b3ede423966dd48255ab7d9f65a384e505ecfb53 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 14 Nov 2020 14:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=88=86=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app-routing.module.ts | 2 +- src/app/http-interceptors/cache-token.service.ts | 6 +++--- src/app/ui/data-push/data-push.component.html | 5 ++++- src/app/ui/data-push/data-push.component.ts | 2 +- src/app/ui/plan/collection-tools.component.html | 2 +- src/app/ui/plan/collection-tools.component.ts | 2 ++ src/app/ui/similar-plans/similar-plans.component.ts | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 9e471f0..fc7a65c 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -16,7 +16,7 @@ import { CollectionToolsComponent } from './ui/collection-tools/collection-tools const routes: Routes = [ - {path:'',redirectTo:`/plan`,pathMatch:'full',}, + {path:'',redirectTo:`/ui/plan`,pathMatch:'full',}, { path:'', component:NavigationComponent, // canActivate: [AuthGuard],//守卫验证 children:[ diff --git a/src/app/http-interceptors/cache-token.service.ts b/src/app/http-interceptors/cache-token.service.ts index e58933d..b19b0cb 100644 --- a/src/app/http-interceptors/cache-token.service.ts +++ b/src/app/http-interceptors/cache-token.service.ts @@ -15,9 +15,9 @@ export class CacheTokenService { login () { return new Promise ((resolve,reject)=>{ - // sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型 - // sessionStorage.setItem("planId",'5fa3820af8eb762cb03c666d'); //预案ID - // sessionStorage.setItem("companyId",'5fa35d68f8eb762cb03c662e'); //单位ID + sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型 + sessionStorage.setItem("planId",'5fa3820af8eb762cb03c666d'); //预案ID + sessionStorage.setItem("companyId",'5fa35d68f8eb762cb03c662e'); //单位ID this.http.post('/api/Account/SignIn',this.loginData).subscribe((data:any)=>{ sessionStorage.setItem("level",data.level); sessionStorage.setItem("token",data.token); diff --git a/src/app/ui/data-push/data-push.component.html b/src/app/ui/data-push/data-push.component.html index a73de2d..89520b1 100644 --- a/src/app/ui/data-push/data-push.component.html +++ b/src/app/ui/data-push/data-push.component.html @@ -1,11 +1,14 @@