You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
532 B

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