const utils={ getStorage:(key)=>{ let tenant_id=JSON.parse(localStorage.getItem('TWMS-userInfo')).content.tenant_id let data=localStorage.getItem(tenant_id+''+key) return JSON.parse(data) }, setStorage:(key,data)=>{ let tenant_id=JSON.parse(localStorage.getItem('TWMS-userInfo')).content.tenant_id let newdata=JSON.stringify(data) console.log(tenant_id+''+key,newdata) localStorage.setItem(tenant_id+''+key,newdata) return true } } export default utils