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
a0f7a260
Commit
a0f7a260
authored
Apr 24, 2022
by
曾婧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/CivWeb
parents
70e4a7ee
d3abaa37
Pipeline
#48600
skipped with stages
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
BasicLayout.js
src/layouts/BasicLayout.js
+0
-0
index.js
src/pages/map/amap/index.js
+8
-2
index.js
src/pages/user/login/index.js
+5
-5
No files found.
src/layouts/BasicLayout.js
View file @
a0f7a260
This diff is collapsed.
Click to expand it.
src/pages/map/amap/index.js
View file @
a0f7a260
...
...
@@ -3,6 +3,7 @@ import { AMapScene } from '@wisdom-map/Amap';
import
{
connect
}
from
'react-redux'
;
import
{
store
}
from
'@wisdom-utils/utils'
;
import
{
actionCreators
}
from
'../../../containers/App/store'
;
const
AMap
=
props
=>
{
const
getMap
=
(
obj
,
current
)
=>
{
store
.
set
(
'amapView'
,
{
...
...
@@ -14,10 +15,15 @@ const AMap = props => {
map
:
current
,
});
};
const
mapOptions
=
{
config
:
props
.
global
.
mapsettings
,
config
:
window
.
globalConfig
.
mapsettings
,
theme
:
'amap://styles/74fae00a851749793870b658f9f22d55'
,
mapOptions
:
{
plugins
:
[
'AMap.MarkerClusterer'
],
},
};
return
(
<
div
style
=
{{
...
...
@@ -32,9 +38,9 @@ const AMap = props => {
<
/div
>
);
};
const
mapStateToProps
=
state
=>
({
global
:
state
.
getIn
([
'global'
,
'globalConfig'
]),
amapView
:
state
.
getIn
([
'global'
,
'amapView'
]),
});
const
mapDispatchToProps
=
dispatch
=>
({
...
...
src/pages/user/login/index.js
View file @
a0f7a260
...
...
@@ -21,11 +21,11 @@ const LoginTemplate = {
};
/* eslint-disable */
export
default
(
props
)
=>
{
const
redirect
=
getParams
(
'redirect'
);
useEffect
(()
=>
{
if
(
getParams
(
'loginName'
)
&&
getParams
(
'password'
))
return
initGlobalConfig
();
},
[
redirect
]);
//
const redirect = getParams('redirect');
//
useEffect(() => {
//
if(getParams('loginName') && getParams('password')) return
//
initGlobalConfig();
//
}, [redirect]);
const
template
=
window
.
globalConfig
&&
window
.
globalConfig
.
loginTemplate
;
const
RenderComponent
=
LoginTemplate
[
template
]
?
LoginTemplate
[
template
]:
LoginTemplate
[
'default'
];
return
<
RenderComponent
{...
props
}
/
>
...
...
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