From 5537c1e622bff6b5f299bb9743a790fdc822cfd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 15 Oct 2019 09:15:39 +0800 Subject: [PATCH] =?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 | 2 +- public/react/src/modules/tpm/NewHeader.js | 6 +++--- public/react/src/modules/tpm/TPMIndexHOC.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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); }