diff --git a/src/components/Login/LoginItem.js b/src/components/Login/LoginItem.js index 0f45a7fddee20463eec7014b74928e445cae58f6..b3cc4d48a978da65faa8d85fef62c7e00040f09a 100644 --- a/src/components/Login/LoginItem.js +++ b/src/components/Login/LoginItem.js @@ -1,6 +1,5 @@ import React, { Component } from 'react'; import { Form, Input, Button, Row, Col } from 'antd'; -import { formatMessage } from 'umi/locale'; import omit from 'omit.js'; import styles from './index.less'; import ItemMap from './map'; @@ -10,8 +9,8 @@ const FormItem = Form.Item; class WrapFormItem extends Component { static defaultProps = { - getCaptchaButtonText: formatMessage({ id: 'form.captcha' }), - getCaptchaSecondText: formatMessage({ id: 'form.captcha.second' }), + getCaptchaButtonText: 'captcha', + getCaptchaSecondText: 'second', }; constructor(props) { diff --git a/src/pages/User/Login.js b/src/pages/User/Login.js index 4075edf28fc417e3f5109d2040a8632d39948834..5036e607585c71b8a25af17bf3796635962698e5 100644 --- a/src/pages/User/Login.js +++ b/src/pages/User/Login.js @@ -96,7 +96,13 @@ class LoginPage extends Component { formatMessage({ id: 'app.login.message-invalid-verification-code' }) )} - +