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 (
@@ -703,7 +705,14 @@ submittojoinclass=(value)=>{ {...this.state} />:""} - 高校智能化教学与实训平台 + { + this.props.getHelmetapi===undefined? + 高校智能化教学与实训平台 + :this.props.getHelmetapi.nav_logo_url===undefined? + 高校智能化教学与实训平台 + : + 高校智能化教学与实训平台 + }