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

fix: 修复缓存

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