From 7619b42541a7b44c4f859b17f69d087b39aef08c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 24 十一月 2025 16:53:46 +0800
Subject: [PATCH] 修改

---
 src/store/modules/user.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index c0b4cc6..80d0735 100644
--- a/src/store/modules/user.js
+++ b/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)

--
Gitblit v1.9.2