From 1b11fc88d2e58f2ea180c086d74ed17f3ea107e3 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 29 六月 2022 15:49:18 +0800
Subject: [PATCH] 'uid'\
---
src/stores/userInfo.ts | 2 +-
src/views/login/component/account.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index f04e50b..9714aab 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -22,7 +22,7 @@
actions: {
async setUserInfos(value: any) {
this.userInfos.userName = value.username
- this.userInfos.uid = value.id
+ this.userInfos.uid = value.uid
this.userInfos.roles = value.role
// const userName = Cookies.get('userName');
// // 模拟数据
diff --git a/src/views/login/component/account.vue b/src/views/login/component/account.vue
index 5e2275a..ca1e619 100644
--- a/src/views/login/component/account.vue
+++ b/src/views/login/component/account.vue
@@ -101,7 +101,7 @@
userInfo.setUserInfos(res.data.data)
Session.set('token', res.data.data.accessToken);
Session.set('projectId','');
- Session.set('uid',res.data.data.id);
+ Session.set('uid',res.data.data.uid);
await initBackEndControlRoutes();
signInSuccess();
}else{
--
Gitblit v1.9.2