Commit 5c72167c authored by 邓超's avatar 邓超

fix: 修改开启代理后favicon读取不到问题

parent 29339114
Pipeline #68205 passed with stages
......@@ -23,6 +23,14 @@ import history from './utils/history';
const initialState = Immutable.Map();
const store = configureStore(initialState, history);
const MOUNT_NODE = document.getElementById('app');
const handleIcoCreate = icoUrl => {
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = icoUrl;
document.getElementsByTagName('head')[0].appendChild(link);
};
handleIcoCreate(window.location.origin + '/civmanage/favicon.ico');
const render = () => {
ReactDOM.render(
<Provider store={store}>
......
......@@ -27,8 +27,8 @@ export default appConnector(function App(props) {
};
return (
<>
<Helmet titleTemplate="%s - 运维平台" defaultTitle="运维平台">
<meta name="description" content="运维平台" />
<Helmet titleTemplate="%s - 熊猫智慧水务运维平台" defaultTitle="熊猫智慧水务运维平台">
<meta name="description" content="熊猫智慧水务运维平台" />
</Helmet>
<Router basename={BASENAME} getUserConfirmation={getConfirmation}>
<Authozed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment