From e8ff4b44a59e96214333950c09dd47ea4205ae01 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 27 八月 2023 19:12:33 +0800 Subject: [PATCH] 2023-08-27 --- src/views/login/loginform.jsx | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/src/views/login/loginform.jsx b/src/views/login/loginform.jsx index dbbcaa3..dd32441 100644 --- a/src/views/login/loginform.jsx +++ b/src/views/login/loginform.jsx @@ -1,6 +1,6 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Input, Button, Checkbox, Select, Modal, message, AutoComplete } from 'antd' +import { Form, Input, Button, Checkbox, Modal, message, AutoComplete } from 'antd' import { UserOutlined, LockOutlined, CloseCircleOutlined } from '@ant-design/icons' import md5 from 'md5' import moment from 'moment' @@ -299,7 +299,6 @@ } render() { - const { langList } = this.props const { getFieldDecorator } = this.props.form const { remember, users } = this.state @@ -349,20 +348,6 @@ initialValue: remember, })(<Checkbox onChange={this.rememberChange}>{this.props.dict['login.remember']}</Checkbox>)} </Form.Item> : <div style={{height: '30px', float: 'left'}}></div>} - {langList && langList.length > 0 ? <Form.Item className="minline right"> - {getFieldDecorator('lang', { - initialValue: this.props.lang, - })( - <Select - onChange={(value) => {this.changelang(value)}} - getPopupContainer={() => document.getElementById('login-form')} - > - {langList.map((item, index) => { - return <Select.Option key={index} value={item.Lang}>{item.LangName}</Select.Option> - })} - </Select> - )} - </Form.Item> : null} <Form.Item className="btn-login"> <Button type="primary" htmlType="submit" className="login-form-button" disabled={this.props.isDisabled} loading={this.props.isDisabled}> {this.props.dict['login.submit']} -- Gitblit v1.8.0