/**
 * 获取LocalStorage数据
 * @param {string} key
 * @returns
 */
function getLocalStorage(key) {
  try {
    return JSON.parse(localStorage.getItem(key));
  } catch (err) {
    return null;
  }
}

export default getLocalStorage;
