Commit cbe9e0d7 authored by 程恺文's avatar 程恺文

修改

parent 004c8741
...@@ -309,7 +309,7 @@ const Layout = props => { ...@@ -309,7 +309,7 @@ const Layout = props => {
window.history.replaceState(null, null, path); window.history.replaceState(null, null, path);
}); });
}); });
}, []); }, [onTopMenuHeaderClick]);
useEffect(() => { useEffect(() => {
siteAction.setGlobalConfig(props.global); siteAction.setGlobalConfig(props.global);
...@@ -425,7 +425,7 @@ const Layout = props => { ...@@ -425,7 +425,7 @@ const Layout = props => {
window.share.event.removeAllListeners('updateSite'); window.share.event.removeAllListeners('updateSite');
loginAction.events.removeListener('toggleIndustry', handleToggleIndustry); loginAction.events.removeListener('toggleIndustry', handleToggleIndustry);
}; };
}, [loginAction.events, props]); }, [GetIntegrationConfig, loginAction.events, props]);
useEffect(() => { useEffect(() => {
const needMark = () => const needMark = () =>
...@@ -467,11 +467,11 @@ const Layout = props => { ...@@ -467,11 +467,11 @@ const Layout = props => {
// setMenuLoading(false); // setMenuLoading(false);
// }, [props.menu]); // }, [props.menu]);
const onTopMenuHeaderClick = index => { const onTopMenuHeaderClick = useCallback(index => {
props.updateCurrentIndex(index); props.updateCurrentIndex(index);
window.share && window.share.event.emit('trigger:updateMenuIndex', index); window.share && window.share.event.emit('trigger:updateMenuIndex', index);
store.set('updateMenuIndex', index); store.set('updateMenuIndex', index);
}; });
const logo = const logo =
props.global && _.isFunction(props.global.get) && props.global.get('bannerLogo') props.global && _.isFunction(props.global.get) && props.global.get('bannerLogo')
......
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