diff --git a/admin-web/src/utils/cache.js b/admin-web/src/utils/cache.js index 3d44cc8ca..06b99c0b1 100644 --- a/admin-web/src/utils/cache.js +++ b/admin-web/src/utils/cache.js @@ -17,8 +17,8 @@ export function setLoginToken(accessToken, refreshToken) { export function getLoginToken() { const res = {}; - cacheKeys[cacheKeys.accessTokenKey] = getLocalStorage(cacheKeys.accessTokenKey); - cacheKeys[cacheKeys.refreshTokenKey] = getLocalStorage(cacheKeys.refreshTokenKey); + res[cacheKeys.accessTokenKey] = getLocalStorage(cacheKeys.accessTokenKey); + res[cacheKeys.refreshTokenKey] = getLocalStorage(cacheKeys.refreshTokenKey); return res; }