Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
acf0de31
Commit
acf0de31
authored
Jun 15, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 'mobile运维功能路径逻辑优化'
parent
19e19115
Pipeline
#74292
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
editForm.jsx
src/pages/productCenter/mobileConfig/menuconfig/editForm.jsx
+6
-6
miniMenu.jsx
src/pages/productCenter/mobileConfig/menuconfig/miniMenu.jsx
+4
-4
No files found.
src/pages/productCenter/mobileConfig/menuconfig/editForm.jsx
View file @
acf0de31
...
...
@@ -11,19 +11,19 @@ const EditForm = props => {
const
{
submitCallback
,
nodeType
,
info
,
inf
,
checkList
,
valueCallback
=
()
=>
{}
}
=
props
;
// 处理pageUrl回显
if
(
info
.
product
)
{
if
(
info
.
product
===
'
F
lutter'
)
{
info
.
pageUrl
=
'/'
+
info
.
product
+
'/'
+
info
.
pageUrl
;
if
(
info
.
product
===
'
f
lutter'
)
{
info
.
pageUrl
=
info
.
product
+
'/'
+
info
.
pageUrl
;
}
else
{
info
.
pageUrl
=
'/'
+
info
.
product
+
info
.
pageUrl
;
info
.
pageUrl
=
info
.
product
+
info
.
pageUrl
;
}
}
else
{
if
(
!
info
.
pageUrl
?.
includes
(
'/'
))
{
info
.
pageUrl
=
'
/F
lutter/'
+
info
.
pageUrl
;
info
.
pageUrl
=
'
f
lutter/'
+
info
.
pageUrl
;
}
else
{
if
(
info
.
pageUrl
?.
split
(
'/'
)[
0
]
!==
''
)
{
info
.
pageUrl
=
'
/
MobileGCK/'
+
info
.
pageUrl
;
info
.
pageUrl
=
'MobileGCK/'
+
info
.
pageUrl
;
}
else
{
info
.
pageUrl
=
'
/
MobileGCK'
+
info
.
pageUrl
;
info
.
pageUrl
=
'MobileGCK'
+
info
.
pageUrl
;
}
}
}
...
...
src/pages/productCenter/mobileConfig/menuconfig/miniMenu.jsx
View file @
acf0de31
...
...
@@ -417,13 +417,13 @@ const MiniMenu = props => {
};
// 处理数据
const
getParams
=
prop
=>
{
const
typeArr
=
[
'MobileGCK'
,
'civ_mobile'
,
'
F
lutter'
];
let
productType
=
prop
.
pageUrl
.
split
(
'/'
)[
1
]
||
''
;
const
typeArr
=
[
'MobileGCK'
,
'civ_mobile'
,
'
f
lutter'
];
let
productType
=
prop
.
pageUrl
?.
split
(
'/'
)[
0
]
||
''
;
if
(
!
typeArr
.
includes
(
productType
))
{
productType
=
''
;
}
let
pageUrl
=
productType
?
prop
.
pageUrl
.
replace
(
`
/
${
productType
}
`
,
''
)
:
prop
.
pageUrl
;
if
(
productType
===
'
F
lutter'
)
{
let
pageUrl
=
productType
?
prop
.
pageUrl
.
replace
(
`
${
productType
}
`
,
''
)
:
prop
.
pageUrl
;
if
(
productType
===
'
f
lutter'
)
{
pageUrl
=
pageUrl
.
replace
(
'/'
,
''
);
}
return
{
productType
,
pageUrl
};
...
...
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