Commit d4326c80 authored by 杨思琦's avatar 杨思琦

fix: 修复缓存

parent 96fb9a33
Pipeline #74032 passed with stages
......@@ -6,7 +6,7 @@ import classNames from 'classnames';
import Cookies from 'js-cookie';
import _ from 'lodash';
import memoized from 'nano-memoize';
import KeepAlive , {AliveScope} from 'react-activation';
import KeepAlive from 'react-activation';
import { connect } from 'react-redux';
import { matchRoutes } from 'react-router-dom';
import RightContent from '@/components/GlobalHeader/SimpleRiightContent';
......@@ -499,7 +499,7 @@ const Layout = props => {
{/* <ArcgisMap options={{ type: 'ArcgisMap' }} /> */}
{/* ) */}
{/* ) : null} */}
<AliveScope>
{/* <AliveScope> */}
{window.location.pathname.startsWith('/civbase/civ_3d/map') || isHaveMap() ? (
<KeepAlive when={true}>
<CesiumMap />
......@@ -507,7 +507,7 @@ const Layout = props => {
) : (
window.location.pathname.startsWith('/civbase/civ_webgis') && null
)}
</AliveScope>
{/* </AliveScope> */}
</Suspense>
<div id="micro-container" className="subapp-container">
......
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