| | |
| | | } |
| | | |
| | | const menuItems = [ |
| | | ...(menu |
| | | ? [ |
| | | { |
| | | key: 'center', |
| | | icon: <UserOutlined />, |
| | | label: '个人中心', |
| | | }, |
| | | // ...(menu |
| | | // ? [ |
| | | // { |
| | | // key: 'center', |
| | | // icon: <UserOutlined />, |
| | | // label: '个人中心', |
| | | // }, |
| | | // { |
| | | // key: 'settings', |
| | | // icon: <SettingOutlined />, |
| | | // label: '个人设置', |
| | | // }, |
| | | // { |
| | | // type: 'divider' as const, |
| | | // }, |
| | | // ] |
| | | // : []), |
| | | { |
| | | key: 'settings', |
| | | icon: <SettingOutlined />, |
| | |
| | | { |
| | | type: 'divider' as const, |
| | | }, |
| | | ] |
| | | : []), |
| | | { |
| | | key: 'logout', |
| | | icon: <LogoutOutlined />, |
| | |
| | | dateFormatter="string" |
| | | pagination={{ pageSize: 20 }} |
| | | search={false} |
| | | style={{ |
| | | marginBottom: '20px' |
| | | }} |
| | | toolbar={{ |
| | | search: { |
| | | onSearch: (value) => { |