user-context
v1.0.14
Published
操作用户上下文
Downloads
35
Readme
user-context
js操作上下文
安装
npm install user-context -S
使用
import UserContext from 'user-context'
--写入cookie
let user={token:"xxxxx",userInfo:{name:"张三",age:22}}
UserContext.Init(user)
--获取cookie信息
const { TOKEN,USER } = UserContext.ROLE()