forked from Gitlink/forgeplus-react
设置-修改邮箱
This commit is contained in:
parent
c7d92a2f59
commit
91ea90546e
|
@ -25,7 +25,7 @@ if (isDev) {
|
|||
}
|
||||
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
||||
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
||||
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || ''
|
||||
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
|
||||
}
|
||||
window._debugType = debugType;
|
||||
export function initAxiosInterceptors(props) {
|
||||
|
|
|
@ -3,6 +3,7 @@ import { Form , Checkbox , Input, Radio , Button , Cascader } from 'antd';
|
|||
import { AlignCenter } from '../../Component/layout';
|
||||
import './Index.scss';
|
||||
import { locData } from '../../Utils/locData';
|
||||
import { Link } from 'react-router-dom';
|
||||
import Axios from 'axios';
|
||||
|
||||
const { TextArea } = Input;
|
||||
|
@ -11,6 +12,7 @@ export default Form.create()(
|
|||
const { getFieldDecorator, validateFields , setFieldsValue } = props && props.form;
|
||||
// const { username } = props && props.match && props.match.params;
|
||||
const { resetUserInfo , current_user } = props;
|
||||
const origin = window.location.origin.indexOf("educoder.net")>-1? "https://www.educoder.net" : "https://testforgeplus.educoder.net";
|
||||
|
||||
useEffect(()=>{
|
||||
if(current_user && current_user.login){
|
||||
|
@ -58,6 +60,7 @@ export default Form.create()(
|
|||
<Input placeholder="请输入您的邮箱账号" disabled style={{width:"400px"}}/>
|
||||
)}
|
||||
</Form.Item>
|
||||
<a className='gotoUpdateEmail mr30' onClick={()=>{window.location.href=`${origin}/account/secure`}}><i className='iconfont icon-bianji1 font-15 mr5'></i>更改邮箱</a>
|
||||
<Form.Item label="">
|
||||
{getFieldDecorator("show_email",{
|
||||
rules:[],
|
||||
|
|
|
@ -27,4 +27,8 @@
|
|||
color: #333333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.gotoUpdateEmail{
|
||||
line-height: 40px;
|
||||
}
|
Loading…
Reference in New Issue