Commit 3eacfe56 authored by 程恺文's avatar 程恺文

修改

parent a166a7e9
Pipeline #91111 passed with stages
/* /*
* @Author: ZengJing * @Author: ZengJing
* @Date: 2022-04-12 18:26:15 * @Date: 2022-04-12 18:26:15
* @LastEditTime: 2022-04-14 09:47:56 * @LastEditTime: 2024-07-24 11:28:12
* @LastEditors: ZengJing * @LastEditors: 634665781 634665781@qq.com
* @Description: * @Description:
* @FilePath: \CivWeb\config\micor.js * @FilePath: \CivWeb\config\micor.js
*/ */
...@@ -56,6 +56,12 @@ export default { ...@@ -56,6 +56,12 @@ export default {
container: '#micro-container', container: '#micro-container',
activeRule: '/civbase/civ_energy', activeRule: '/civbase/civ_energy',
}, },
{
name: 'civ_waterresources',
entry: `//${window.location.hostname}:3000/civ_waterresources`,
container: '#micro-container',
activeRule: '/civbase/civ_waterresources',
},
// { // {
// name: 'middleground', // name: 'middleground',
// entry: `//${window.location.hostname}:8082/middleground`, // entry: `//${window.location.hostname}:8082/middleground`,
......
...@@ -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_waterresources/map') || window.location.pathname.startsWith('/civbase/civ_drainage/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_waterresources') || window.location.pathname.startsWith('/civbase/civ_drainage') ? ( {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