From b05438694c2fb9d4c8b1b22f4481639ff0f35963 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Mon, 07 May 2018 15:16:38 +0800
Subject: [PATCH] 三级警报数据
---
src/app/business/services/http/login.service.ts | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/app/business/services/http/login.service.ts b/src/app/business/services/http/login.service.ts
index 5b3cfa4..b5c1b6f 100644
--- a/src/app/business/services/http/login.service.ts
+++ b/src/app/business/services/http/login.service.ts
@@ -50,9 +50,8 @@
this.authorization = res;
const now = new Date();
// expiredTime,refreshToken,refreshTime ������������ token ������������
- const expiredTime = !!this.authorization.expiredTime ? this.authorization.expiredTime.toString() : null;
this.setRefreshTime();
- localStorage.setItem('expiredTime', expiredTime);
+ localStorage.setItem('expiredTime', String(this.authorization.expiredTime));
localStorage.setItem('refreshToken', this.authorization.refreshToken);
return res;
}
@@ -66,7 +65,7 @@
}
);
}
- get _refreshToken(){
+ get _refreshToken() {
return !!this.authorization.refreshToken ? this.authorization.refreshToken : this.refreshTokenFromLocal;
}
get refreshTokenFromLocal(): string {
--
Gitblit v1.8.0