Browse Source

(*) 登录返回部门名称

master
liujiangyong 2 years ago
parent
commit
b1dc22ed99
  1. 3
      api/app/lib/controllers/auth/index.js

3
api/app/lib/controllers/auth/index.js

@ -61,7 +61,8 @@ async function login(ctx, next) {
authorized: true,
token: token,
userResources: userRes ? userRes.userResources.map(r => r.resourceId) : [],
type: deptInfo ? deptInfo.type : ''
type: deptInfo ? deptInfo.type : '',
deptName: deptInfo ? deptInfo.name : '',
});
await models.UserToken.create({
token: token,

Loading…
Cancel
Save