From 71371f81071a72eecd7d7a02ae3825943aae50d1 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Wed, 18 Apr 2018 08:57: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