Commit 8058e4d8 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

rm umi/local in components

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment