| | |
| | | import { encrypt } from '@/utils/sm2'; |
| | | import md5 from 'js-md5'; |
| | | |
| | | const userInfoData = getStore({ name: 'userInfo' }) || {} |
| | | const user = { |
| | | state: { |
| | | // 当前选中的请求头 |
| | | selectedAreaCode: userInfoData?.detail?.areaCode || '', |
| | | tenantId: getStore({ name: 'tenantId' }) || '', |
| | | userInfo: getStore({ name: 'userInfo' }) || [], |
| | | userInfo: userInfoData, |
| | | permission: getStore({ name: 'permission' }) || {}, |
| | | roles: [], |
| | | menuId: {}, |
| | |
| | | if (!validatenull(userInfo.oauth_id)) { |
| | | userInfo.oauthId = userInfo.oauth_id; |
| | | } |
| | | userInfo.selectedAreaCode = userInfo?.detail?.areaCode || ''; |
| | | state.userInfo = userInfo; |
| | | } |
| | | setStore({ name: 'userInfo', content: state.userInfo }); |