Skip to content

Commit

Permalink
解决: token过期退出重新登录,online菜单还是提示token过期
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Oct 27, 2022
1 parent 22e656d commit 166f7e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/cache/persistent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export class Persistent {
static getLocal<T>(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);
if(globalCache){
localMemory.setCache(globalCache);
}
//update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
return localMemory.get(key)?.value as Nullable<T>;
}
Expand Down

0 comments on commit 166f7e1

Please sign in to comment.