|
@@ -6,6 +6,7 @@ import { Button, Checkbox, Form, Icon, Input } from 'antd';
|
|
import { PwaInstaller } from '../widget';
|
|
import { PwaInstaller } from '../widget';
|
|
import { connectAlita } from 'redux-alita';
|
|
import { connectAlita } from 'redux-alita';
|
|
import { qyWxOauthUrl } from '../../const';
|
|
import { qyWxOauthUrl } from '../../const';
|
|
|
|
+import CFG from 'src/const';
|
|
|
|
|
|
const FormItem = Form.Item;
|
|
const FormItem = Form.Item;
|
|
|
|
|
|
@@ -51,7 +52,7 @@ class Login extends React.Component {
|
|
<div className="login">
|
|
<div className="login">
|
|
<div className="login-form">
|
|
<div className="login-form">
|
|
<div className="login-logo">
|
|
<div className="login-logo">
|
|
- <span>React Admin</span>
|
|
|
|
|
|
+ <span>{CFG.PT_NAME}</span>
|
|
<PwaInstaller/>
|
|
<PwaInstaller/>
|
|
</div>
|
|
</div>
|
|
<Form onSubmit={this.handleSubmit} style={{ maxWidth: '300px' }}>
|
|
<Form onSubmit={this.handleSubmit} style={{ maxWidth: '300px' }}>
|
|
@@ -60,7 +61,7 @@ class Login extends React.Component {
|
|
rules: [{ required: true, message: '请输入用户名!' }],
|
|
rules: [{ required: true, message: '请输入用户名!' }],
|
|
})(
|
|
})(
|
|
<Input prefix={<Icon type="user" style={{ fontSize: 13 }}/>}
|
|
<Input prefix={<Icon type="user" style={{ fontSize: 13 }}/>}
|
|
- placeholder="管理员输入admin, 游客输入guest"/>,
|
|
|
|
|
|
+ placeholder="请输入账号"/>,
|
|
)}
|
|
)}
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem>
|
|
<FormItem>
|
|
@@ -68,7 +69,7 @@ class Login extends React.Component {
|
|
rules: [{ required: true, message: '请输入密码!' }],
|
|
rules: [{ required: true, message: '请输入密码!' }],
|
|
})(
|
|
})(
|
|
<Input prefix={<Icon type="lock" style={{ fontSize: 13 }}/>} type="password"
|
|
<Input prefix={<Icon type="lock" style={{ fontSize: 13 }}/>} type="password"
|
|
- placeholder="管理员输入admin, 游客输入guest"/>,
|
|
|
|
|
|
+ placeholder="请输入您的密码"/>,
|
|
)}
|
|
)}
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem>
|
|
<FormItem>
|
|
@@ -85,7 +86,7 @@ class Login extends React.Component {
|
|
</Button>
|
|
</Button>
|
|
<p style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
<p style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
<span>或 现在就去注册!</span>
|
|
<span>或 现在就去注册!</span>
|
|
- <span onClick={this.qyWx}><Icon type="github"/>(企业微信)</span>
|
|
|
|
|
|
+ <span onClick={this.qyWx}>企业微信</span>
|
|
</p>
|
|
</p>
|
|
</FormItem>
|
|
</FormItem>
|
|
</Form>
|
|
</Form>
|