From 0d0c38d422ca4d4d84e80d094f69567f5cd2025d Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Thu, 22 Sep 2022 11:11:16 +0800
Subject: [PATCH] Default Changelist

---
 src/stores/userInfo.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index be7e8c0..425b01d 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -19,9 +19,10 @@
             dataList: []
         }
     }),
+    persist:true,
     actions: {
         async setUserInfos(value: any) {
-            this.userInfos.userName = value.username;
+            this.userInfos.userName = value.realName;
             this.userInfos.uid = value.uid;
             this.userInfos.roles = value.role;
             // const userName = Cookies.get('userName');

--
Gitblit v1.9.2