Commit 69a3a700 authored by 秦文海's avatar 秦文海

chore:移除cesium

parent 1d8aebf5
Pipeline #90357 waiting for manual action with stages
...@@ -42,7 +42,7 @@ const { params } = helpers; ...@@ -42,7 +42,7 @@ const { params } = helpers;
let notify = null; let notify = null;
// const ArcgisMap = React.lazy(() => import('../pages/map/arcgis')); // const ArcgisMap = React.lazy(() => import('../pages/map/arcgis'));
// const AMap = React.lazy(() => import('../pages/map/amap')); // const AMap = React.lazy(() => import('../pages/map/amap'));
const CesiumMap = React.lazy(() => import('../pages/map/cesiumMap')); // const CesiumMap = React.lazy(() => import('../pages/map/cesiumMap'));
const waitTime = (time = 100) => const waitTime = (time = 100) =>
new Promise(resolve => { new Promise(resolve => {
...@@ -773,7 +773,7 @@ const Layout = props => { ...@@ -773,7 +773,7 @@ const Layout = props => {
: <></> : <></>
)} )}
> >
<Suspense fallback={<></>}> {/* <Suspense fallback={<></>}> */}
{/* {window.location.pathname.startsWith('/civbase/civ_3d') ? ( */} {/* {window.location.pathname.startsWith('/civbase/civ_3d') ? ( */}
{/* <KeepAlive> */} {/* <KeepAlive> */}
{/* <CesiumMap /> */} {/* <CesiumMap /> */}
...@@ -786,15 +786,15 @@ const Layout = props => { ...@@ -786,15 +786,15 @@ const Layout = props => {
{/* ) */} {/* ) */}
{/* ) : null} */} {/* ) : null} */}
{/* <AliveScope> */} {/* <AliveScope> */}
{window.location.pathname.startsWith('/civbase/civ_drainage/map') || isHaveMap() ? ( {/* {window.location.pathname.startsWith('/civbase/civ_drainage/map') || isHaveMap() ? (
<KeepAlive when={true}> <KeepAlive when={true}>
<CesiumMap /> <CesiumMap />
</KeepAlive> </KeepAlive>
) : ( ) : (
window.location.pathname.startsWith('/civbase/civ_webgis') && null window.location.pathname.startsWith('/civbase/civ_webgis') && null
)} )} */}
{/* </AliveScope> */} {/* </AliveScope> */}
</Suspense> {/* </Suspense> */}
<div id="micro-container" className="subapp-container"> <div id="micro-container" className="subapp-container">
{props.children} {props.children}
......
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