Commit 8f84543a authored by GuanHua's avatar GuanHua

feat: 登录cookie添加登录用户角色列表参数

parent 7d102618
......@@ -27,7 +27,9 @@ export const setAuth = (info: AuthInfo) => {
name: info.name,
logo: info.logo,
levelTag: info.levelTag,
creditPoint: info.creditPoint
creditPoint: info.creditPoint,
memberRoleType: info.memberRoleType,
memberRoleId: info.memberRoleId
}
setCookie(AUTH_KEY, JSON.stringify(auth), { domain: TOP_DOMAIN })
setCookie('AUTH_ROLES', JSON.stringify(info.roles), { domain: TOP_DOMAIN })
......
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