diff --git a/src/utils/cache/persistent.ts b/src/utils/cache/persistent.ts index 6198d22..21aab20 100644 --- a/src/utils/cache/persistent.ts +++ b/src/utils/cache/persistent.ts @@ -56,6 +56,10 @@ function initPersistentMemory() { export class Persistent { static getLocal(key: LocalKeys) { + //update-begin---author:scott ---date:2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期---------- + const globalCache = ls.get(APP_LOCAL_CACHE_KEY); + localMemory.setCache(globalCache); + //update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期---------- return localMemory.get(key)?.value as Nullable; }