|
|
@ -28,11 +28,9 @@ import queryString from 'query-string';
|
|
|
|
import { flushSync } from 'react-dom';
|
|
|
|
import { flushSync } from 'react-dom';
|
|
|
|
import classnames from 'classnames';
|
|
|
|
import classnames from 'classnames';
|
|
|
|
import useStyle from './style';
|
|
|
|
import useStyle from './style';
|
|
|
|
import Banner from '@/components/Banner';
|
|
|
|
|
|
|
|
import PageLoading from '@/components/PageLoading';
|
|
|
|
import PageLoading from '@/components/PageLoading';
|
|
|
|
|
|
|
|
|
|
|
|
const prefixCls = 'login';
|
|
|
|
const prefixCls = 'login';
|
|
|
|
const showBanner = process.env.PREVIEW_ENV || process.env.NODE_ENV === 'development';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 错误消息
|
|
|
|
* 错误消息
|
|
|
@ -152,14 +150,6 @@ const Login: React.FC = () => {
|
|
|
|
<link rel="icon" href={'/favicon.ico'} />
|
|
|
|
<link rel="icon" href={'/favicon.ico'} />
|
|
|
|
</Helmet>
|
|
|
|
</Helmet>
|
|
|
|
<div className={classnames(`${prefixCls}`)}>
|
|
|
|
<div className={classnames(`${prefixCls}`)}>
|
|
|
|
{showBanner && <Banner />}
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: 'white',
|
|
|
|
|
|
|
|
height: 'calc(100vh - 48px)',
|
|
|
|
|
|
|
|
border: '1px solid rgb(240, 240, 240)',
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<LoginFormPage
|
|
|
|
<LoginFormPage
|
|
|
|
backgroundImageUrl={'/login-background.png'}
|
|
|
|
backgroundImageUrl={'/login-background.png'}
|
|
|
|
logo={'/full-logo.svg'}
|
|
|
|
logo={'/full-logo.svg'}
|
|
|
@ -262,7 +252,6 @@ const Login: React.FC = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</LoginFormPage>
|
|
|
|
</LoginFormPage>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
) : (
|
|
|
|
) : (
|
|
|
|
<PageLoading />
|
|
|
|
<PageLoading />
|
|
|
|