daiwenyu commented on code in PR #222:
URL: https://github.com/apache/shenyu-dashboard/pull/222#discussion_r934358915
##########
src/routes/User/Login.js:
##########
@@ -21,18 +21,27 @@ import { Alert } from 'antd';
import Login from 'components/Login';
import styles from './Login.less';
-const { UserName, Password, Submit } = Login;
-
+const { UserName, Password, Submit, VerifyCode, LoginCode } = Login;
@connect(({ login, loading }) => ({
login,
submitting: loading.effects['login/login'],
}))
export default class LoginPage extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ VCode: ""
+ }
+ }
handleSubmit = (err, values) => {
const { dispatch } = this.props;
if (!err) {
+ if (values.verifyCode !== this.state.VCode) {
+ alert("请输入正确的验证码!")
Review Comment:
Recommended use message, content internationalization processing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]