| | |
| | | import { outLogin } from '@/services/ant-design-pro/api'; |
| | | import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons'; |
| | | import { history, useModel } from '@umijs/max'; |
| | | import { history, useModel, FormattedMessage, useIntl } from '@umijs/max'; |
| | | import { Spin } from 'antd'; |
| | | import { createStyles } from 'antd-style'; |
| | | import { stringify } from 'querystring'; |
| | |
| | | }; |
| | | |
| | | export const AvatarDropdown = ({ menu, children }) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const { initialState, setInitialState } = useModel('@@initialState'); |
| | | |
| | |
| | | { |
| | | key: 'logout', |
| | | icon: <LogoutOutlined />, |
| | | label: '退出登录', |
| | | label: intl.formatMessage({ id: 'common.account.logout', defaultMessage: '退出登录' }), |
| | | }, |
| | | ]; |
| | | |
| | |
| | | 'common.execute':'Execute', |
| | | 'common.success':'Success', |
| | | 'common.fail':'Fail', |
| | | 'common.account.logout': 'Logout', |
| | | '':'', |
| | | '':'', |
| | | '':'', |