import { PageContainer, ProCard } from '@ant-design/pro-components'; import { useEmotionCss } from '@ant-design/use-emotion-css'; import { useModel } from '@umijs/max'; import { Avatar, Divider, Space } from 'antd'; import React from 'react'; const Workbench: React.FC = () => { const { initialState } = useModel('@@initialState'); const { currentUser } = initialState ?? {}; // const { token } = theme.useToken(); const headerClassName = useEmotionCss(({ token }) => { return { display: 'flex', flexDirection: 'row', alignItems: 'center', '.avatar': { width: 64, height: 64, }, '.text-panel': { display: 'flex', flexDirection: 'column', justifyContent: 'space-between', padding: `${token.paddingXS}px ${token.paddingMD}px`, '.text': { color: token.colorTextHeading, fontSize: 20, marginBottom: token.paddingXS, }, '.tags': { fontSize: 14, color: token.colorTextLabel, '.iconfont': { marginRight: 4, }, }, }, }; }); return (
欢迎您{currentUser?.name},祝你开心每一天! }> {currentUser?.sysOrg && {currentUser?.sysOrg.name}} {currentUser?.sysRoles && currentUser?.sysRoles.length > 0 && {currentUser?.sysRoles?.map(t => t.name)?.join('、')}}
{/* []} /> */}
); }; export default Workbench;