From 91ea90546e7e96f5d4eca4aa58d61d72c61ee9be Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 3 Jul 2023 14:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE-=E4=BF=AE=E6=94=B9=E9=82=AE?= =?UTF-8?q?=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/users/Material/Base.jsx | 3 +++ src/forge/users/Material/Index.scss | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 566ae65c1..24f066563 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -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) { diff --git a/src/forge/users/Material/Base.jsx b/src/forge/users/Material/Base.jsx index 35f4d0ad8..5c9376226 100644 --- a/src/forge/users/Material/Base.jsx +++ b/src/forge/users/Material/Base.jsx @@ -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()( )} + {window.location.href=`${origin}/account/secure`}}>更改邮箱 {getFieldDecorator("show_email",{ rules:[], diff --git a/src/forge/users/Material/Index.scss b/src/forge/users/Material/Index.scss index f4e79a52b..e5fc5cd96 100644 --- a/src/forge/users/Material/Index.scss +++ b/src/forge/users/Material/Index.scss @@ -27,4 +27,8 @@ color: #333333; } } +} + +.gotoUpdateEmail{ + line-height: 40px; } \ No newline at end of file