'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Created by baoyinghai on 4/13/17.
 */
if (!sessionStorage) {
  console.error('not support sessionStorage');
}

var sessionCache = sessionStorage || {};

var saveProcessMenuCode = exports.saveProcessMenuCode = function saveProcessMenuCode(code) {
  if (!code) {
    sessionCache.processMenuId = '';
  } else {
    sessionCache.processMenuId = code;
  }
};

var saveEnterMenuId = exports.saveEnterMenuId = function saveEnterMenuId(code) {
  if (!code) {
    sessionCache.enterMenuId = '';
  } else {
    sessionCache.enterMenuId = code;
  }
};

var getRecMenuId = exports.getRecMenuId = function getRecMenuId() {
  return {
    enterMenuId: sessionCache.enterMenuId,
    processMenuId: sessionCache.processMenuId
  };
};