- 优化 getLoginToken
This commit is contained in:
parent
1c134a20ef
commit
a16c223c15
@ -17,8 +17,8 @@ export function setLoginToken(accessToken, refreshToken) {
|
|||||||
|
|
||||||
export function getLoginToken() {
|
export function getLoginToken() {
|
||||||
const res = {};
|
const res = {};
|
||||||
cacheKeys[cacheKeys.accessTokenKey] = getLocalStorage(cacheKeys.accessTokenKey);
|
res[cacheKeys.accessTokenKey] = getLocalStorage(cacheKeys.accessTokenKey);
|
||||||
cacheKeys[cacheKeys.refreshTokenKey] = getLocalStorage(cacheKeys.refreshTokenKey);
|
res[cacheKeys.refreshTokenKey] = getLocalStorage(cacheKeys.refreshTokenKey);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user