Commit 1729683c authored by 徐乐's avatar 徐乐

feat: 修改

parent f478a91c
......@@ -396,7 +396,7 @@ const Layout = props => {
}, [cityData, props.global, props.global.userInfo, siteAction]);
useEffect(() => {
if (window?.globalConfig?.isIntegration > 1) {
if (window?.globalConfig?.isIntegration >= 1) {
GetIntegrationConfig();
}
window.share.event.on('updateSite', res => {
......@@ -411,7 +411,7 @@ const Layout = props => {
defaultApp();
};
if (window?.globalConfig?.isIntegration > 1) {
if (window?.globalConfig?.isIntegration >= 1) {
loginAction.events.on('toggleIndustry', handleToggleIndustry);
}
......@@ -459,7 +459,7 @@ const Layout = props => {
}
const onMenuHeaderClick = event => {
//集成网站
if (window.globalConfig.isIntegration >= 1) {
if (window.globalConfig.isIntegration > 1 || integrationData.length > 1) {
// window.qiankunIsCache = false;
history.push('/Industry');
}
......@@ -654,7 +654,7 @@ const Layout = props => {
popupOffset: [0, 15],
}}
headerSiteRender={() =>
window?.globalConfig?.isIntegration > 1
window?.globalConfig?.isIntegration >= 1
?
renderIntegration(integrationData, loginAction, props)
:
......
......@@ -13,7 +13,7 @@ const BootPageTemplate = {
integration: IntegrationPage
};
let first = true;
const BootPage = props => {
const [info, setInfo] = useState({
first: true,
......@@ -21,10 +21,10 @@ const BootPage = props => {
error: false,
});
const [template, setTemplate] = useState('default');
const RenderComponent = useMemo(() => {
if (window?.globalConfig?.isIntegration >= 1) {
if (window?.globalConfig?.isIntegration >= 1 && first) {
first = false;
//集成登录
return BootPageTemplate.integration
} else {
......
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