解决: token过期退出重新登录,online菜单还是提示token过期

pull/186/head
zhangdaiscott 2022-10-27 16:02:23 +08:00
parent cbe7ea4bb5
commit 22e656daf3
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ function initPersistentMemory() {
export class Persistent {
static getLocal<T>(key: LocalKeys) {
//update-begin---author:scott ---date:2022-10-27 fortoken过期退出重新登录online菜单还是提示token过期----------
const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
localMemory.setCache(globalCache);
//update-end---author:scott ---date::2022-10-27 fortoken过期退出重新登录online菜单还是提示token过期----------
return localMemory.get(key)?.value as Nullable<T>;
}