From 8058e4d864812c3e13e6a91a61b0c0e384dbe9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 16 Nov 2018 16:20:06 +0800 Subject: [PATCH] rm umi/local in components --- src/components/Login/LoginItem.js | 5 ++--- src/pages/User/Login.js | 8 +++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Login/LoginItem.js b/src/components/Login/LoginItem.js index 0f45a7fd..b3cc4d48 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 4075edf2..5036e607 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' }) )} - +
-- GitLab