zhouwx
2025-11-17 e772a2670a081374b6eecfc43548b80d8d9c3cdd
src/store/modules/user.js
@@ -12,6 +12,7 @@
      id: '',
      name: '',
      companyId: null,
      companyName: '',
      avatar: '',
      roles: [],
      permissions: []
@@ -46,9 +47,10 @@
            } else {
              this.roles = ['ROLE_DEFAULT']
            }
            this.id = user.userId
            this.name = user.userName
            this.id = user.id
            this.name = user.name
            this.companyId = user.companyId
            this.companyName = user.companyName
            this.avatar = avatar
            Cookies.set('userInfo',JSON.stringify(user))
            resolve(res)