update:获取用户信息
This commit is contained in:
@@ -57,7 +57,6 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
login(data)
|
||||
.then(({data: res}) => {
|
||||
// SPDM子应用使用
|
||||
Cookies.set('cid_user_info', JSON.stringify(res))
|
||||
Cookies.set('cid_user_id', res.user_id)
|
||||
Session.setTenant(res.tenant_id);
|
||||
// 存储token 信息
|
||||
@@ -190,6 +189,8 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
async setUserInfos() {
|
||||
await getUserInfo()
|
||||
.then((res) => {
|
||||
// SPDM子应用使用
|
||||
Cookies.set('cid_user_info', JSON.stringify(res.data.sysUser));
|
||||
this.userInfos = {
|
||||
user: res.data.sysUser,
|
||||
time: new Date().getTime(),
|
||||
|
||||
Reference in New Issue
Block a user