From b1dc22ed99533875a2a323734a2acdf1856a1d14 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Mon, 16 Jan 2023 18:37:43 +0800 Subject: [PATCH] =?UTF-8?q?(*)=20=E7=99=BB=E5=BD=95=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/auth/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app/lib/controllers/auth/index.js b/api/app/lib/controllers/auth/index.js index a03c824..85a6ab1 100644 --- a/api/app/lib/controllers/auth/index.js +++ b/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,