| | |
| | | ProFormText, |
| | | } from '@ant-design/pro-components'; |
| | | import { Button, Divider, Alert, Tabs, message, theme } from 'antd'; |
| | | import { useState } from 'react'; |
| | | import { useState, useEffect } from 'react'; |
| | | import { FormattedMessage, history, SelectLang, useIntl, useModel, Helmet } from '@umijs/max'; |
| | | import { flushSync } from 'react-dom'; |
| | | import { request } from '@umijs/max'; |
| | |
| | | const [loginType, setLoginType] = useState('account'); |
| | | const [userLoginState, setUserLoginState] = useState({}); |
| | | const [status, setStatus] = useState(200); |
| | | const [rememberMe, setRememberMe] = useState(true); |
| | | |
| | | console.log(initialState.memo); |
| | | |
| | | useEffect(() => { |
| | | console.log(rememberMe); |
| | | }, [rememberMe]) |
| | | |
| | | const fetchUserInfo = async () => { |
| | | const userInfo = await initialState?.fetchUserInfo?.(); |
| | |
| | | marginBlockEnd: 24, |
| | | }} |
| | | > |
| | | <ProFormCheckbox noStyle name="autoLogin"> |
| | | <ProFormCheckbox |
| | | noStyle |
| | | name="autoLogin" |
| | | onChange={(e) => { |
| | | setRememberMe(e.target.checked); |
| | | }} |
| | | > |
| | | 自动登录 |
| | | </ProFormCheckbox> |
| | | </div> |