From d0d2c4b15d1c97a6c815a8d960dde43afbe5ffee Mon Sep 17 00:00:00 2001 From: lijing1 Date: Tue, 3 Feb 2026 20:53:31 +0800 Subject: [PATCH] update --- src/stores/userInfo.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts index 8462f16..3001131 100644 --- a/src/stores/userInfo.ts +++ b/src/stores/userInfo.ts @@ -191,7 +191,9 @@ export const useUserInfo = defineStore('userInfo', { await getUserInfo() .then((res) => { // SPDM CODE - Cookies.set('cid_user_info', JSON.stringify(res.data.sysUser)); + const userInfoData = res.data.sysUser; + userInfoData.roleCodes = res.data.roleCodes; + Cookies.set('cid_user_info', JSON.stringify(userInfoData)); Cookies.set('cid_user_id', res.data.sysUser.userId); Cookies.set('cid_tenant_id', res.data.sysUser.tenantId); loginHeartbeat();