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();