gaoluyang
2026-05-16 89079cd6f458c06b014d2609dcded95600be30a9
src/store/modules/user.js
@@ -56,15 +56,17 @@
            } else {
              this.roles = ['ROLE_DEFAULT']
            }
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar
            this.currentFactoryName = user.currentFactoryName
            this.nickName = user.nickName
            this.roleName = user.roles[0].roleName
            this.currentDeptId = user.tenantId
            this.currentLoginTime = this.getCurrentTime()
            this.aiEnabled = Number(res.aiEnabled) === 1 ? 1 : 0
            this.phonenumber = user.phonenumber
            this.remark = user.remark
            resolve(res)
          }).catch(error => {
            reject(error)