zhouwx
7 天以前 ff1169ac5114c68e96c5686a0caa5d69d8a60b8a
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)