diff --git a/src/AppConfig.js b/src/AppConfig.js index df3388a28..185f98cbc 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -32,9 +32,9 @@ export function initAxiosInterceptors(props) { // 判断网络是否连接 initOnlineOfflineListener(); - // var proxy = "https://testforgeplus.trustie.net"; + var proxy = "https://testforgeplus.trustie.net"; // var proxy = "http://172.20.32.201:4000"; - var proxy = "https://www.gitlink.org.cn"; + // var proxy = "https://www.gitlink.org.cn"; //响应前的设置 axios.interceptors.request.use( diff --git a/src/modules/login/LoginDialog.js b/src/modules/login/LoginDialog.js index 7315fc0a6..08c0f1286 100644 --- a/src/modules/login/LoginDialog.js +++ b/src/modules/login/LoginDialog.js @@ -539,7 +539,7 @@ class LoginDialog extends Component { 注册

- + diff --git a/src/modules/loginRegister/Login.jsx b/src/modules/loginRegister/Login.jsx index 30fcf35ff..711bab83e 100644 --- a/src/modules/loginRegister/Login.jsx +++ b/src/modules/loginRegister/Login.jsx @@ -139,7 +139,7 @@ function Login(props){ // }) // } //

- + } diff --git a/src/modules/loginRegister/Register.jsx b/src/modules/loginRegister/Register.jsx index e9ba19a62..171c03c9c 100644 --- a/src/modules/loginRegister/Register.jsx +++ b/src/modules/loginRegister/Register.jsx @@ -8,7 +8,7 @@ import OtherLogin from "./component/otherLogin"; import { Encrypt } from "../../common/Env"; function Register(props){ - const {form, mygetHelmetapi} = props; + const {form, mygetHelmetapi,location} = props; const {getFieldDecorator, setFieldsValue } = form; //用户输入的符合规则的邮箱(用于获取验证码) const [emailStr, setEmailStr] = useState(undefined); @@ -344,7 +344,7 @@ function Register(props){ - + ) diff --git a/src/modules/loginRegister/component/otherLogin.jsx b/src/modules/loginRegister/component/otherLogin.jsx index bd5f80817..cbdd25acb 100644 --- a/src/modules/loginRegister/component/otherLogin.jsx +++ b/src/modules/loginRegister/component/otherLogin.jsx @@ -8,11 +8,12 @@ import githublogo from '../../login/github.png'; import CCFlogo from '../../login/CCF.png'; import OpenI from '../../login/OpenI.svg'; import defaultlog from '../../login/default.png'; +import cookie from 'react-cookies'; import "../LoginRegisterPage.scss" -function OtherLogin(){ +function OtherLogin({location,main_site_url}){ const [setting, setSetting] = useState(undefined); - + useEffect(()=>{ //获取第三方登录平台信息 setSetting(JSON.parse(localStorage.getItem("chromesetting"))); @@ -48,7 +49,7 @@ function OtherLogin(){