From bf91430786ac97d717145288d9823920943992d9 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 17 Oct 2023 16:06:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 81338639..36da0781 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -124,14 +124,14 @@ const useUserStore = defineStore('user', { if (res.code === RESULT_CODE_SUCCESS && res.data) { const { user, roles, permissions } = res.data; // 登录账号 - this.userName = user.accountId; + this.userName = user.userName; // 用户头像 this.avatar = user.avatar; // 基础信息 - this.nickName = user.name; - this.phonenumber = user.phone; + this.nickName = user.nickName; + this.phonenumber = user.phonenumber; this.email = user.email; - this.sex = user.gender; + this.sex = user.sex; // 额外信息 try { this.profile = JSON.parse(user.profile);