diff --git a/public/react/src/App.js b/public/react/src/App.js index d3a753617..c771021bf 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -378,7 +378,7 @@ class App extends Component { oldLink = document.getElementById('dynamic-favicon'); link.id = 'dynamic-favicon'; link.rel = 'shortcut icon'; - link.href = response.data.setting.tab_logo_url; + link.href = '/'+response.data.setting.tab_logo_url; if (oldLink) { document.head.removeChild(oldLink); } diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index f77a831fb..cb0e571cd 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -657,8 +657,8 @@ submittojoinclass=(value)=>{ console.log("开始刷新数据了") let url = "/setting.json"; axios.get(url).then((response) => { - console.log("axios.get"); - console.log(response); + // console.log("axios.get"); + // console.log(response); if(response){ if(response.data){ @@ -670,7 +670,7 @@ submittojoinclass=(value)=>{ oldLink = document.getElementById('dynamic-favicon'); link.id = 'dynamic-favicon'; link.rel = 'shortcut icon'; - link.href = response.data.setting.tab_logo_url; + link.href = '/'+response.data.setting.tab_logo_url; if (oldLink) { document.head.removeChild(oldLink); } diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index dc76b67d1..18caee33c 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -294,7 +294,7 @@ export function TPMIndexHOC(WrappedComponent) { oldLink = document.getElementById('dynamic-favicon'); link.id = 'dynamic-favicon'; link.rel = 'shortcut icon'; - link.href = response.data.setting.tab_logo_url; + link.href = '/'+response.data.setting.tab_logo_url; if (oldLink) { document.head.removeChild(oldLink); }