From cefcb88c6cd0690052e503d5f1c943cb7f8a03cb Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 30 十一月 2022 09:18:32 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqt

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

diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index c4eb3bc..973c82a 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';
 
 /**
  * 用户信息
@@ -16,15 +15,18 @@
             roles: [],
             authBtnList: [],
             uid: '',
+            depId: '',
             projectId: '',
             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;
+            this.userInfos.depId = value.depId
             // const userName = Cookies.get('userName');
             // // 模拟数据
             // let defaultRoles: Array<string> = [];

--
Gitblit v1.9.2