From a16c223c1525dc3742011328ae9c547ea9964440 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Tue, 5 Mar 2019 21:15:47 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=20getLoginToken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/src/utils/cache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }