src/app/business/services/http/login.service.ts | ●●●●● patch | view | raw | blame | history |
src/app/business/services/http/login.service.ts
@@ -50,8 +50,9 @@ 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', this.authorization.expiredTime.toString()); localStorage.setItem('expiredTime', expiredTime); localStorage.setItem('refreshToken', this.authorization.refreshToken); return res; }