提交 8058e4d8 编写于 作者: 陈帅

rm umi/local in components

上级 3fffc83d
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) {
......
......@@ -96,7 +96,13 @@ class LoginPage extends Component {
formatMessage({ id: 'app.login.message-invalid-verification-code' })
)}
<Mobile name="mobile" />
<Captcha name="captcha" countDown={120} onGetCaptcha={this.onGetCaptcha} />
<Captcha
name="captcha"
countDown={120}
onGetCaptcha={this.onGetCaptcha}
getCaptchaButtonText={formatMessage({ id: 'form.captcha' })}
getCaptchaSecondText={formatMessage({ id: 'form.captcha.second' })}
/>
</Tab>
<div>
<Checkbox checked={autoLogin} onChange={this.changeAutoLogin}>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册