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) }