From 23f1bf22c42a904c05cee63e10c9fd8b60dfe8f5 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期二, 20 九月 2022 14:54:56 +0800
Subject: [PATCH] Default Changelist

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

diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index c4eb3bc..425b01d 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -1,7 +1,6 @@
 import { defineStore } from 'pinia';
 import Cookies from 'js-cookie';
 import { UserInfosStates } from './interface';
-import { Session } from '/@/utils/storage';
 
 /**
  * 用户信息
@@ -20,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