Commit ea52d990 authored by 罗剑's avatar 罗剑

排水三维加载问题

parent 8b0749ce
Pipeline #84261 passed with stages
...@@ -663,7 +663,6 @@ const Layout = props => { ...@@ -663,7 +663,6 @@ const Layout = props => {
}); });
} }
}; };
return ( return (
<SecurityLayout {...props}> <SecurityLayout {...props}>
<BasicLayout <BasicLayout
...@@ -747,7 +746,7 @@ const Layout = props => { ...@@ -747,7 +746,7 @@ const Layout = props => {
{/* ) */} {/* ) */}
{/* ) : null} */} {/* ) : null} */}
{/* <AliveScope> */} {/* <AliveScope> */}
{window.location.pathname.startsWith('/civbase/civ_3d/map') || isHaveMap() ? ( {window.location.pathname.startsWith('/civbase/civ_3d/map') || window.location.pathname.startsWith('/civbase/civ_drainage/map') || isHaveMap() ? (
<KeepAlive when={true}> <KeepAlive when={true}>
<CesiumMap /> <CesiumMap />
</KeepAlive> </KeepAlive>
......
...@@ -310,7 +310,7 @@ const Layout = props => { ...@@ -310,7 +310,7 @@ const Layout = props => {
{/* <ArcgisMap options={{ type: 'ArcgisMap' }} /> */} {/* <ArcgisMap options={{ type: 'ArcgisMap' }} /> */}
{/* ) */} {/* ) */}
{/* ) : null} */} {/* ) : null} */}
{window.location.pathname.startsWith('/civbase/civ_3d/map') ? ( {(window.location.pathname.startsWith('/civbase/civ_3d/map') || window.location.pathname.startsWith('/civbase/civ_drainage/map')) ? (
<KeepAlive> <KeepAlive>
<CesiumMap /> <CesiumMap />
</KeepAlive> </KeepAlive>
......
...@@ -285,7 +285,7 @@ const Layout = props => { ...@@ -285,7 +285,7 @@ const Layout = props => {
> >
<> <>
<Suspense fallback={<></>}> <Suspense fallback={<></>}>
{window.location.pathname.startsWith('/civbase/civ_3d') ? ( {window.location.pathname.startsWith('/civbase/civ_3d') || window.location.pathname.startsWith('/civbase/civ_drainage') ? (
<KeepAlive> <KeepAlive>
<CesiumMap /> <CesiumMap />
</KeepAlive> </KeepAlive>
......
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