From 50d33c74675a9d9eee957a685d9e55b77974f6f9 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期五, 06 一月 2023 16:44:06 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqt
---
src/stores/userInfo.ts | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index be7e8c0..edbe1ed 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -15,15 +15,18 @@
roles: [],
authBtnList: [],
uid: '',
+ depId: null,
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