diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index 1f2e437..5f0cfde 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -15,6 +15,7 @@ const user = { pcId: null, itemIds: null, voteIds: null, + deptId: null, roles: [], permissions: [] }, @@ -44,6 +45,9 @@ const user = { SET_VOTEIDS: (state, voteIds) => { state.voteIds = voteIds }, + SET_DEPTID: (state, deptId) => { + state.deptId = deptId + }, SET_ROLES: (state, roles) => { state.roles = roles }, @@ -92,6 +96,7 @@ const user = { commit('SET_PCID', user.pcId) commit('SET_ITEMIDS', user.itemIds) commit('SET_VOTEIDS', user.voteIds) + commit('SET_DEPTID', user.deptId) /* 初始密码提示 */ /*if(res.isDefaultModifyPwd) { MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue index 669d09f..530cede 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/dept/index.vue @@ -1,6 +1,6 @@