简单封装localstore
export default { getItem:(key)=>{ let value try{ value = localStorage.getItem(key) }catch(err){ console.log(err.message); }finally{ return value } }, setItem:(key,value)=>{ try{ localStorage.setItem(key,value) }catch(err){ console.log(err.message); } } }