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

修改

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