From e15df9a20c29044b10772e3587a00d0be03b281d Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期日, 08 十二月 2024 20:57:41 +0800
Subject: [PATCH] 增加了内容
---
ruoyi-ui/src/store/modules/user.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js
index 045498d..9adfbb6 100644
--- a/ruoyi-ui/src/store/modules/user.js
+++ b/ruoyi-ui/src/store/modules/user.js
@@ -7,6 +7,7 @@
name: '',
avatar: '',
clanId: '',
+ userId: '',
roles: [],
permissions: []
},
@@ -29,6 +30,9 @@
},
SET_CLANID: (state, clanId) => {
state.clanId = clanId
+ },
+ SET_USERID: (state, userId) => {
+ state.userId = userId
},
},
@@ -74,6 +78,7 @@
}
// console.log(res)
// alert(res.user.clanId)
+ commit('SET_USERID', res.user.userId)
commit('SET_CLANID', res.user.clanId)
commit('SET_NAME', user.userName)
commit('SET_AVATAR', avatar)
--
Gitblit v1.9.1