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
f81817bb
Commit
f81817bb
authored
Oct 21, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复菜单索引
parent
dd0d503b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
BasicLayout1.js
src/layouts/BasicLayout1.js
+9
-9
index.js
src/pages/map/arcgisMap/index.js
+0
-7
No files found.
src/layouts/BasicLayout1.js
View file @
f81817bb
...
@@ -351,16 +351,16 @@ const BasicLayout = props => {
...
@@ -351,16 +351,16 @@ const BasicLayout = props => {
* web4全屏退出,切换三级菜单高亮
* web4全屏退出,切换三级菜单高亮
*/
*/
useEffect
(()
=>
{
useEffect
(()
=>
{
const
routes
=
currentRoutes
.
routes
[
selectIndex
];
if
(
selectIndex
!==
-
1
)
{
if
(
routes
)
{
const
routes
=
currentRoutes
.
routes
[
selectIndex
];
if
(
routes
&&
routes
.
routes
)
{
if
(
routes
)
{
const
route
=
routes
&&
routes
.
routes
&&
routes
.
routes
.
find
(
item
=>
item
.
path
===
decodeURI
(
window
.
location
.
pathname
.
replace
(
'/civbase'
,
''
)));
if
(
routes
&&
routes
.
routes
)
{
if
(
route
&&
route
.
path
)
{
const
route
=
routes
&&
routes
.
routes
&&
routes
.
routes
.
find
(
item
=>
item
.
path
===
decodeURI
(
window
.
location
.
pathname
.
replace
(
'/civbase'
,
''
)));
setTabActiveKey
(
route
.
path
)
if
(
route
&&
route
.
path
)
{
setTabActiveKey
(
route
.
path
)
}
}
}
}
}
}
}
},
[
props
.
location
]);
},
[
props
.
location
]);
// window.share.event.on('event:history', params => {
// window.share.event.on('event:history', params => {
...
@@ -650,7 +650,7 @@ const BasicLayout = props => {
...
@@ -650,7 +650,7 @@ const BasicLayout = props => {
}
}
<
div
id
=
"micro-container"
className
=
"subapp-container"
>
<
div
id
=
"micro-container"
className
=
"subapp-container"
>
<
CreateBaseMap
/>
{
/*<CreateBaseMap/>*/
}
{
props
.
children
}
{
props
.
children
}
<
/div
>
<
/div
>
<
/PageContainer
>
<
/PageContainer
>
...
...
src/pages/map/arcgisMap/index.js
View file @
f81817bb
...
@@ -22,13 +22,6 @@ class CreateMap extends React.Component {
...
@@ -22,13 +22,6 @@ class CreateMap extends React.Component {
};
};
componentDidMount
()
{
debugger
this
.
mapManganerRef
.
current
.
props
.
getViewInfo
(
view
=>
{
console
.
log
(
view
);
})
}
render
()
{
render
()
{
return
(
return
(
<>
<>
...
...
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