From 39ea49edce74ae063ca0afd9b2966f861e256a3e Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Tue, 17 Apr 2018 13:18:36 +0800
Subject: [PATCH] ts fix,组织报警间隔时间设置
---
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