血透系统PC前端

admin_info_cache.js 347B

12345678910111213
  1. const userInfoKey = "admin_user_info"
  2. export function getAdminUserInfoCache() {
  3. return window.sessionStorage.getItem(userInfoKey)
  4. }
  5. export function cacheAdminUserInfo(infoJSONStr) {
  6. window.sessionStorage.setItem(userInfoKey, infoJSONStr)
  7. }
  8. export function removeAdminUserInfoCache() {
  9. window.sessionStorage.removeItem(userInfoKey)
  10. }