diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index f0dacf2be..f83834a33 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -594,19 +594,6 @@ export function TPMIndexHOC(WrappedComponent) {
hideGlobalLoading = () => {
this.setState({ globalLoading: false })
}
- getAppdata=()=>{
- let url = "/setting.json";
- axios.get(url).then((response) => {
- if(response){
- this.setState({
- getHelmetapi:response.data.setting
- })
- }
-
- }).catch((error) => {
-
- });
- };
render() {
let{Headertop,Footerdown, isRender, AccountProfiletype}=this.state;
const common = {
diff --git a/public/react/src/modules/user/LoginRegisterPage.js b/public/react/src/modules/user/LoginRegisterPage.js
index 1990f118f..8990f1d78 100644
--- a/public/react/src/modules/user/LoginRegisterPage.js
+++ b/public/react/src/modules/user/LoginRegisterPage.js
@@ -1,30 +1,30 @@
-import React, { Component } from 'react';
-
-import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
-
-import Loading from '../../Loading';
-
-import Loadable from 'react-loadable';
-
-// import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
-
-import { SnackbarHOC, getImageUrl } from 'educoder';
-import LoginRegisterComponent from './LoginRegisterComponent';
-import FindPasswordComponent from './FindPasswordComponent';
-
-class LoginRegisterPage extends Component {
- render() {
- // newMain clearfix
- return (
-
- login
-
-
-
-
-
- );
- }
-}
-
-export default SnackbarHOC() ( ( LoginRegisterPage ));
+import React, { Component } from 'react';
+
+import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
+
+import Loading from '../../Loading';
+
+import Loadable from 'react-loadable';
+
+// import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
+
+import { SnackbarHOC, getImageUrl } from 'educoder';
+import LoginRegisterComponent from './LoginRegisterComponent';
+import FindPasswordComponent from './FindPasswordComponent';
+
+class LoginRegisterPage extends Component {
+ render() {
+ // newMain clearfix
+ return (
+
+
+
+
+
+
+
+ );
+ }
+}
+
+export default SnackbarHOC() ( ( LoginRegisterPage ));
From d39b6071dc2042314cf86e677b21915209dc2e19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Mon, 14 Oct 2019 16:07:47 +0800
Subject: [PATCH 05/27] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/App.js | 26 ++++++++++++++++---
.../react/src/modules/login/EducoderLogin.js | 17 +++++++++---
public/react/src/modules/tpm/NewHeader.js | 11 +++++++-
public/react/src/modules/tpm/TPMIndexHOC.js | 6 ++---
4 files changed, 49 insertions(+), 11 deletions(-)
diff --git a/public/react/src/App.js b/public/react/src/App.js
index 8a1986cc8..1c13dfa3d 100644
--- a/public/react/src/App.js
+++ b/public/react/src/App.js
@@ -366,7 +366,7 @@ class App extends Component {
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
link.rel = 'shortcut icon';
- link.href = response.data.setting.nav_logo_url;
+ link.href = response.data.setting.tab_logo_url;
if (oldLink) {
document.head.removeChild(oldLink);
}
@@ -463,10 +463,22 @@ class App extends Component {
{
+
+ return ()
+ }
+ }
/>
{
+
+ return ()
+ }
+ }
/>
{
+
+ return ()
+ }
+ }
/>
@@ -151,7 +153,16 @@ class EducoderLogin extends Component {
"width": "100%"
}}>
-
this.gohome()} src={educodernet}/>
+ {
+ this.props.getHelmetapi===undefined?
+
this.gohome()} src={educodernet}/>
+ :
+ this.props.getHelmetapi.login_logo_url===undefined?
+
this.gohome()} src={educodernet}/>
+ :
+
this.gohome()} src={getImageUrl(this.props.getHelmetapi.login_logo_url)}/>
+ }
+
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index d5119245b..019726296 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -687,6 +687,8 @@ submittojoinclass=(value)=>{
activeIndex = true;
}
+ console.log("NewHeader");
+ console.log(this.props);
return (