Commit e5d2776e authored by 李苏's avatar 李苏 💬

erp系统通用存储

parent 15aeaff0
...@@ -54,12 +54,7 @@ const user = { ...@@ -54,12 +54,7 @@ const user = {
/* 存储本地一份 */ /* 存储本地一份 */
setToken(res.data.token) setToken(res.data.token)
/* ERP项目查询物料属性*/ /* ERP项目查询物料属性*/
materialProp().then(res=>{ materialProp()
let list=['isKwgl','isPhgl','isFjldw','isGysgl']
list.forEach(item=>{
localStorage.setItem(item,res[item])
})
})
commit('SET_TOKEN', res.data.token) commit('SET_TOKEN', res.data.token)
setUserid(res.data.userid) setUserid(res.data.userid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment