WXL
2025-04-11 ee8f1a0138b4b7de2389e31d2eb186167a1548f7
src/store/modules/user.js
@@ -7,6 +7,7 @@
    name: '',
    Id: '',
    avatar: '',
    hisUserId:'',
    belongWards:[],
    belongDepts:[],
    roles: [],
@@ -106,6 +107,9 @@
    SET_leavehospitaldistrictcodes: (state, belongWards) => {
      state.belongWards = belongWards
    },
    SET_hisUserId: (state, hisUserId) => {
      state.hisUserId = hisUserId
    },
    SET_leaveldeptcodes: (state, belongDepts) => {
      state.belongDepts = belongDepts
    }
@@ -147,8 +151,8 @@
            commit('SET_ROLES', ['ROLE_DEFAULT'])
          }
          commit('SET_NAME', user.userName)
          console.log(user.userId,'user1');
          commit('SET_Id', user.userId)
          commit('SET_hisUserId', user.hisUserId)
          commit('SET_leavehospitaldistrictcodes', user.belongWards)
          commit('SET_leaveldeptcodes', user.belongDepts)
          commit('SET_AVATAR', avatar)