RuoYi
2023-11-29 cb80de3742d66cfee20bc3136c735e5ca5a7d45c
src/store/modules/user.js
@@ -7,6 +7,7 @@
  {
    state: () => ({
      token: getToken(),
      id: '',
      name: '',
      avatar: '',
      roles: [],
@@ -40,10 +41,11 @@
              this.roles = res.roles
              this.permissions = res.permissions
            } else {
              this.setRoutes = ['ROLE_DEFAULT']
              this.roles = ['ROLE_DEFAULT']
            }
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar;
            this.avatar = avatar
            resolve(res)
          }).catch(error => {
            reject(error)