From 48906fb78d8ec01f412569f82fa469a3dc81de4e Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Sat, 22 Aug 2020 11:51:01 +0800
Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E4=BF=AE=E6=94=B9a?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=9C=B0=E5=9D=80=E4=BB=A5=E5=8F=8A=E6=88=98?=
=?UTF-8?q?=E6=9C=AF=E6=8E=88=E8=AF=BE=E5=AD=A6=E4=B9=A0=E7=9A=84=E6=98=BE?=
=?UTF-8?q?=E9=9A=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/lockscreen/lockscreen.component.ts | 2 ++
src/app/pages/login/login.component.ts | 2 ++
src/app/ui/all-file/all-file.component.html | 12 +++----
src/app/ui/all-file/all-file.component.ts | 31 +++++++++++++------
.../enterpriseuser.component.ts | 2 +-
5 files changed, 33 insertions(+), 16 deletions(-)
diff --git a/src/app/pages/lockscreen/lockscreen.component.ts b/src/app/pages/lockscreen/lockscreen.component.ts
index fff6625..81df77c 100644
--- a/src/app/pages/lockscreen/lockscreen.component.ts
+++ b/src/app/pages/lockscreen/lockscreen.component.ts
@@ -29,6 +29,8 @@ export class LockscreenComponent implements OnInit {
onSubmit(e){
let params = { roleType: this.roleType }
this.http.post('/api/Account/SignIn',e,{params}).subscribe((data:any)=>{
+ sessionStorage.setItem('username',e.name)
+ sessionStorage.setItem('expires',data.expires)
sessionStorage.setItem('realName',data.realName)
sessionStorage.setItem('roleType',data.roleType)
sessionStorage.setItem("token",data.token);
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 7aa98c1..60bb7b0 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -29,6 +29,8 @@ export class LoginComponent implements OnInit {
onSubmit(e){
let params = { roleType: '0' }
this.http.post('/api/Account/SignIn',e,{params}).subscribe((data:any)=>{
+ sessionStorage.setItem('username',e.name)
+ sessionStorage.setItem('expires',data.expires)
sessionStorage.setItem('realName',data.realName)
sessionStorage.setItem('roleType',data.roleType)
sessionStorage.setItem("token",data.token);
diff --git a/src/app/ui/all-file/all-file.component.html b/src/app/ui/all-file/all-file.component.html
index 5b01156..346fb37 100644
--- a/src/app/ui/all-file/all-file.component.html
+++ b/src/app/ui/all-file/all-file.component.html
@@ -29,7 +29,6 @@