From 8fc16c6f29bd098598a03e8306788d9b3d2a60ba Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期二, 27 八月 2024 16:04:41 +0800
Subject: [PATCH] agent

---
 src/store/modules/user/index.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts
index 426abc7..56d90b8 100644
--- a/src/store/modules/user/index.ts
+++ b/src/store/modules/user/index.ts
@@ -71,12 +71,14 @@
         const res = await userLogin(loginForm);
 
         setToken(res.data.access_token);
+       
         const userInfo = {
           avatar: res.data.avatar,
-          name: res.data.nickname,
+          name: res.data.userName,
           email: res.data.email,
           role: res.data.roles[0].roleKey,
         };
+        this.name=res.data.userName
      
         if(res.data?.roles.length>0)
             this.resources=res.data.roles[0].resources;

--
Gitblit v1.8.0