Commit a0ec19bb authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent 622e5fdd
...@@ -86,15 +86,15 @@ export default { ...@@ -86,15 +86,15 @@ export default {
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
// '/tos/': {
// target: 'http://47.74.233.180:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/tos/': { '/tos/': {
target: 'http://192.168.1.28:8651', target: 'http://47.74.233.180:8651',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
// '/tos/': {
// target: 'http://192.168.1.28:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
}, },
}; };
import { ArrowLeftOutlined } from '@ant-design/icons'; import { ArrowLeftOutlined } from '@ant-design/icons';
import { message, Form, Button, Checkbox, Input } from 'antd'; import { message, Form, Button, Checkbox, Input } from 'antd';
import React, { useState, useEffect, useCallback } from 'react'; import React, { useState, useEffect, useCallback } from 'react';
import { connect, Dispatch, history } from 'umi'; import { connect, Dispatch, history, setLocale } from 'umi';
import { StateType } from '@/models/login'; import { StateType } from '@/models/login';
import { LoginParamsType, getCaptcha, ValidateCaptcha } from '@/services/login'; import { LoginParamsType, getCaptcha, ValidateCaptcha } from '@/services/login';
import { ConnectState } from '@/models/connect'; import { ConnectState } from '@/models/connect';
...@@ -49,6 +49,9 @@ const Login: React.FC<LoginProps> = (props) => { ...@@ -49,6 +49,9 @@ const Login: React.FC<LoginProps> = (props) => {
// 提交按钮 // 提交按钮
const handleSubmit = async (values: LoginParamsType) => { const handleSubmit = async (values: LoginParamsType) => {
// 暂时登录直接设施英文
setLocale('en-US', false);
if (forgetflag) { if (forgetflag) {
if (!values.userName || !values.code) { if (!values.userName || !values.code) {
message.error('The mailbox or verification code cannot be empty!!!'); message.error('The mailbox or verification code cannot be empty!!!');
......
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