feige
5 天以前 d14437e20cbd781725583e15c444da6f58192de8
ruoyi-ui/src/store/modules/user.js
@@ -74,12 +74,14 @@
          if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
            commit('SET_ROLES', res.roles)
            commit('SET_PERMISSIONS', res.permissions)
          } else {
            commit('SET_ROLES', ['ROLE_DEFAULT'])
          }
       // console.log(res)
          console.log(res.user)
       // alert(res.user.uaid)
   //    alert(123)
       // alert(res.user.clanId)
        commit('SET_USERID', res.user.userId)
           commit('SET_CLANID', res.user.clanId)