From e03de53bd6db0bb2be9a2a1775dc8dd9d5f49416 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Thu, 29 Mar 2018 10:44:58 +0800 Subject: [PATCH] value 为0 置为 横线 bug 修复 --- src/app/business/services/http/login.service.ts | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/app/business/services/http/login.service.ts b/src/app/business/services/http/login.service.ts index 5b3cfa4..1889d2b 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; } -- Gitblit v1.8.0