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
e1255dfa
Commit
e1255dfa
authored
1 year ago
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 'productType新增ThirdParty'
parent
e60c65e9
Pipeline
#79012
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
miniMenu.jsx
src/pages/productCenter/mobileConfig/menuconfig/miniMenu.jsx
+4
-1
No files found.
src/pages/productCenter/mobileConfig/menuconfig/miniMenu.jsx
View file @
e1255dfa
...
...
@@ -418,7 +418,7 @@ const MiniMenu = props => {
};
// 处理数据
const
getParams
=
prop
=>
{
const
typeArr
=
[
'MobileGCK'
,
'civ_mobile'
,
'flutter'
];
const
typeArr
=
[
'MobileGCK'
,
'civ_mobile'
,
'flutter'
,
'ThirdParty'
];
let
productType
=
prop
.
pageUrl
?.
split
(
'/'
)[
0
]
||
''
;
if
(
productType
===
''
)
{
productType
=
'MobileGCK'
;
...
...
@@ -429,6 +429,9 @@ const MiniMenu = props => {
if
(
!
typeArr
.
includes
(
productType
))
{
productType
=
''
;
}
if
(
prop
.
pageUrl
?.
indexOf
(
'http'
)
!==
-
1
)
{
productType
=
'ThirdParty'
;
}
let
pageUrl
=
productType
?
prop
.
pageUrl
?.
replace
(
`
${
productType
}
`
,
''
)
:
prop
.
pageUrl
;
if
(
productType
===
'flutter'
)
{
pageUrl
=
pageUrl
.
replace
(
'/'
,
''
);
...
...
This diff is collapsed.
Click to expand it.
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