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
b67e62aa
Commit
b67e62aa
authored
Sep 18, 2023
by
张帆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改站点切换未判断站点名称问题
parent
c7d05665
Pipeline
#78989
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
SimpleRiightContent.js
src/components/GlobalHeader/SimpleRiightContent.js
+3
-1
No files found.
src/components/GlobalHeader/SimpleRiightContent.js
View file @
b67e62aa
...
...
@@ -255,7 +255,7 @@ const GlobalHeaderRight = props => {
if
(
global
.
mapsettings
&&
global
.
mapsettings
.
layers
){
global
.
mapsettings
.
layers
.
forEach
((
item
)
=>
{
if
(
item
.
layerType
==
"PipenetLayer"
){
let
roalarr
=
item
.
roleNames
.
split
(
","
)
let
roalarr
=
item
.
roleNames
?
item
.
roleNames
.
split
(
","
):[]
if
(
roalarr
.
length
){
roalarr
.
forEach
((
result
)
=>
{
if
(
result
.
includes
(
'站点_'
)){
...
...
@@ -282,6 +282,7 @@ const GlobalHeaderRight = props => {
<
div
className
=
{
className
}
>
{
renderTopMenu
()}
{
roleStationArr
.
current
.
length
>
1
&&
(
<
div
className
=
{
styles
.
curentPersonStationWriper
}
>
<
span
>
站点
:
<
/span
>
<
div
className
=
{
styles
.
currentPersonStationSlect
}
>
...
...
@@ -327,6 +328,7 @@ const GlobalHeaderRight = props => {
<
/Select
>
<
/div
>
<
/div
>
)
}
<
Avatar
menu
config
=
{
props
.
global
}
updateCurrentIndex
=
{
props
.
updateCurrentIndex
}
updateConfig
=
{
props
.
updateConfig
}
logout
=
{
logout
}
/
>
<
/div
>
...
...
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