feige
2025-01-08 86b5bac6443be3594391a8e70170a7e026907dba
ruoyi-ui/src/store/modules/user.js
@@ -7,6 +7,7 @@
    name: '',
    avatar: '',
   clanId: '',
   userId: '',
    roles: [],
    permissions: []
  },
@@ -29,6 +30,9 @@
    },
   SET_CLANID: (state, clanId) => {
     state.clanId = clanId
   },
   SET_USERID: (state, userId) => {
     state.userId = userId
   },
  },
@@ -74,6 +78,7 @@
          }
       // console.log(res)
       // alert(res.user.clanId)
        commit('SET_USERID', res.user.userId)
           commit('SET_CLANID', res.user.clanId)
          commit('SET_NAME', user.userName)
          commit('SET_AVATAR', avatar)