From b076f355b7b438b45e430cbd1c441ef5ff34b6fe Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Mon, 28 May 2018 17:14:19 +0800
Subject: [PATCH] 登录过期相应
---
src/app/business/services/http/login.service.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/business/services/http/login.service.ts b/src/app/business/services/http/login.service.ts
index 9432876..b5c1b6f 100644
--- a/src/app/business/services/http/login.service.ts
+++ b/src/app/business/services/http/login.service.ts
@@ -51,7 +51,7 @@
const now = new Date();
// expiredTime,refreshToken,refreshTime ������������ token ������������
this.setRefreshTime();
- localStorage.setItem('expiredTime', this.authorization.expiredTime.toString());
+ localStorage.setItem('expiredTime', String(this.authorization.expiredTime));
localStorage.setItem('refreshToken', this.authorization.refreshToken);
return res;
}
@@ -65,7 +65,7 @@
}
);
}
- get _refreshToken(){
+ get _refreshToken() {
return !!this.authorization.refreshToken ? this.authorization.refreshToken : this.refreshTokenFromLocal;
}
get refreshTokenFromLocal(): string {
--
Gitblit v1.8.0