parent
22e656daf3
commit
166f7e1888
|
@ -58,7 +58,9 @@ export class Persistent {
|
||||||
static getLocal<T>(key: LocalKeys) {
|
static getLocal<T>(key: LocalKeys) {
|
||||||
//update-begin---author:scott ---date:2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
//update-begin---author:scott ---date:2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
||||||
const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
|
const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
|
||||||
|
if(globalCache){
|
||||||
localMemory.setCache(globalCache);
|
localMemory.setCache(globalCache);
|
||||||
|
}
|
||||||
//update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
//update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
||||||
return localMemory.get(key)?.value as Nullable<T>;
|
return localMemory.get(key)?.value as Nullable<T>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue