|
|
@ -16,7 +16,7 @@ import { |
|
|
ProFormText, |
|
|
ProFormText, |
|
|
} from '@ant-design/pro-components'; |
|
|
} from '@ant-design/pro-components'; |
|
|
import { FormattedMessage, Helmet, history, SelectLang, useIntl, useModel } from '@umijs/max'; |
|
|
import { FormattedMessage, Helmet, history, SelectLang, useIntl, useModel } from '@umijs/max'; |
|
|
import { Alert, message, Tabs } from 'antd'; |
|
|
import { App, Alert, Tabs } from 'antd'; |
|
|
import { createStyles } from 'antd-style'; |
|
|
import { createStyles } from 'antd-style'; |
|
|
import React, { useState } from 'react'; |
|
|
import React, { useState } from 'react'; |
|
|
import { flushSync } from 'react-dom'; |
|
|
import { flushSync } from 'react-dom'; |
|
|
@ -100,6 +100,7 @@ const Login: React.FC = () => { |
|
|
const [type, setType] = useState<string>('account'); |
|
|
const [type, setType] = useState<string>('account'); |
|
|
const { initialState, setInitialState } = useModel('@@initialState'); |
|
|
const { initialState, setInitialState } = useModel('@@initialState'); |
|
|
const { styles } = useStyles(); |
|
|
const { styles } = useStyles(); |
|
|
|
|
|
const { message } = App.useApp(); |
|
|
const intl = useIntl(); |
|
|
const intl = useIntl(); |
|
|
|
|
|
|
|
|
const fetchUserInfo = async () => { |
|
|
const fetchUserInfo = async () => { |
|
|
|