From 22e656daf32a5b7f28f12654ae6b3f7fd08891fe Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 27 Oct 2022 16:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3:=20token=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E9=80=80=E5=87=BA=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95=EF=BC=8C?= =?UTF-8?q?online=E8=8F=9C=E5=8D=95=E8=BF=98=E6=98=AF=E6=8F=90=E7=A4=BAtok?= =?UTF-8?q?en=E8=BF=87=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/cache/persistent.ts | 4 ++++ 1 file changed, 4 insertions(+) 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; }