Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
0bedc6a0
Commit
0bedc6a0
authored
Apr 02, 2022
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加地图初始化监听
parent
f564f88f
Pipeline
#47230
skipped with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
micor.js
config/micor.js
+1
-1
actions.js
src/actions.js
+1
-0
micro.js
src/micro.js
+1
-1
index.js
src/pages/map/index.js
+2
-1
No files found.
config/micor.js
View file @
0bedc6a0
...
...
@@ -32,7 +32,7 @@ export default {
// },
{
name
:
'civ_webgis'
,
entry
:
`//
${
window
.
location
.
hostname
}
:808
0
/civ_webgis`
,
entry
:
`//
${
window
.
location
.
hostname
}
:808
1
/civ_webgis`
,
container
:
'#micro-container'
,
activeRule
:
'/civbase/civ_webgis'
,
},
...
...
src/actions.js
View file @
0bedc6a0
...
...
@@ -3,6 +3,7 @@ import { initGlobalState } from 'qiankun';
export
const
initialState
=
{
globalConfig
:
{},
view
:
""
};
const
actions
=
initGlobalState
(
initialState
);
...
...
src/micro.js
View file @
0bedc6a0
...
...
@@ -125,7 +125,7 @@ export const initMicroApps = () => {
// globalConfig.homepage = globalConfig.homepage && /civweb4/.test(globalConfig.homepage) ? config.homepage.replace(/civweb4\//, ''): globalConfig.homepage;
actions
.
setGlobalState
({
// eslint-disable-next-line no-undef
globalConfig
:
globalConfig
,
globalConfig
:
globalConfig
//createStoreage.get('globalConfig'),
});
...
...
src/pages/map/index.js
View file @
0bedc6a0
...
...
@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import
{
actionCreators
}
from
'@/containers/App/store'
;
import
MapComponent
from
'@/components/mapView'
;
import
AMapLoader
from
'@amap/amap-jsapi-loader'
;
import
{
store
}
from
'microser-data'
;
class
CreateMap
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -18,6 +18,7 @@ class CreateMap extends React.Component {
getView
=
view
=>
{
store
.
set
(
'view'
,
view
);
this
.
props
.
updageMapView
(
view
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment