Commit 6b70b446 authored by 崔佳豪's avatar 崔佳豪

fix: 登录欢迎语配置

parent 689180fd
Pipeline #55860 waiting for manual action with stages
......@@ -23,9 +23,9 @@ const Login = props => {
return (
<LoginContext.Provider value={{}}>
<div className={classNames(className, styles.login)}>
<div className={styles.desc}>
{intl.formatMessage({ id: 'pages.login.welcome' })}
</div>
{props.welcome === void 0 ? (
<div className={styles.desc}>{intl.formatMessage({ id: 'pages.login.welcome' })}</div>
) : props.welcome}
<Form
form={props.from}
onFinish={values => {
......
......@@ -6,7 +6,7 @@ import LoginMessage from './loginMessage';
/* eslint-disable */
const { UserName, Password, Submit } = LoginForm;
const useAccount = props => (
<LoginForm onSubmit={props.onSubmit}>
<LoginForm onSubmit={props.onSubmit} welcome={props.welcome}>
{props.status === 'error' && props.type === 'account' && !props.submitting && (
<LoginMessage
content={useIntl().formatMessage({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment