From 328b51842953ecdfd26ae6558c181531b6f39709 Mon Sep 17 00:00:00 2001 From: zhangzhiqiang Date: Fri, 30 Dec 2022 09:01:36 +0800 Subject: [PATCH] =?UTF-8?q?mdf:=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/nladmin-ui/src/store/modules/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/nladmin-ui/src/store/modules/user.js b/lms/nladmin-ui/src/store/modules/user.js index 0a62cc11e..fa08819ce 100644 --- a/lms/nladmin-ui/src/store/modules/user.js +++ b/lms/nladmin-ui/src/store/modules/user.js @@ -96,6 +96,9 @@ export const setUserInfo = (res, commit) => { } else { commit('SET_ROLES', res.permissions) } + if (res.depts && res.roles.length > 0) { + commit('SET_DEPTS', res.depts) + } commit('SET_USER', res.user) }