RuoYi
2023-09-27 205a67504b6931d2d9533db9fcf196c77375caf2
src/store/modules/user.js
@@ -7,6 +7,7 @@
  {
    state: () => ({
      token: getToken(),
      id: '',
      name: '',
      avatar: '',
      roles: [],
@@ -42,8 +43,9 @@
            } else {
              this.roles = ['ROLE_DEFAULT']
            }
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar;
            this.avatar = avatar
            resolve(res)
          }).catch(error => {
            reject(error)