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
0f749049
Commit
0f749049
authored
Apr 03, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:演示功能入口 对http 链接拦截
parent
d1653f67
Pipeline
#86841
waiting for manual action with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
index.js
src/pages/bootpage/demonstration/components/Bottom/index.js
+2
-1
index.js
src/pages/bootpage/demonstration/components/Right/index.js
+2
-2
index.js
src/pages/bootpage/demonstration/index.js
+3
-3
No files found.
src/pages/bootpage/demonstration/components/Bottom/index.js
View file @
0f749049
...
...
@@ -25,6 +25,7 @@ const BottomItem = props => {
};
const
toPage
=
(
url
,
col
)
=>
{
if
(
!
isJump
)
return
message
.
warning
(
'该用户没有权限!'
);
if
(
!
url
.
includes
(
'https'
))
return
;
if
(
!
url
.
includes
(
'user/noscret'
)
||
projectConfig
[
col
[
'平台名称'
]])
{
return
handToPage
(
url
);
}
...
...
@@ -41,7 +42,7 @@ const BottomItem = props => {
{
row
.
map
((
col
,
cIndex
)
=>
(
<
div
key
=
{
`
${
rindex
}
-
${
cIndex
}
`
}
type
=
{
col
[
'项目环境'
]
&&
isJump
?
'jump'
:
'none'
}
type
=
{
col
[
'项目环境'
]
&&
col
[
'项目环境'
].
includes
(
'https'
)
&&
isJump
?
'jump'
:
'none'
}
onClick
=
{()
=>
toPage
(
col
[
'项目环境'
],
col
)}
alt
=
"点击体验"
className
=
{
styles
.
list_item
}
...
...
src/pages/bootpage/demonstration/components/Right/index.js
View file @
0f749049
...
...
@@ -14,7 +14,7 @@ const RightItem = props => {
if
(
row
.
site
)
{
handToProduct
(
row
);
}
else
if
(
row
[
'产品地址'
])
{
handToPage
(
row
[
'产品地址'
]);
row
[
'产品地址'
].
includes
(
'https'
)
&&
handToPage
(
row
[
'产品地址'
]);
}
};
const
renderRow
=
(
row
,
index
)
=>
{
...
...
@@ -24,7 +24,7 @@ const RightItem = props => {
className
=
{
styles
.
r_list_item
}
key
=
{
row
[
'产品名称'
]}
rIndex
=
{
rIndex
}
type
=
{
row
[
'产品地址'
]
||
row
.
site
?
'jump'
:
'none'
}
type
=
{
(
row
[
'产品地址'
]
&&
row
[
'产品地址'
].
includes
(
'https'
))
||
row
.
site
?
'jump'
:
'none'
}
onClick
=
{()
=>
toPage
(
row
)}
>
<
div
className
=
{
styles
.
r_list_item_title
}
>
{
row
[
'产品名称'
]}
<
/div
>
...
...
src/pages/bootpage/demonstration/index.js
View file @
0f749049
...
...
@@ -206,7 +206,7 @@ const Demonstration = props => {
const
handToPage
=
url
=>
{
if
(
!
url
)
return
message
.
warning
(
'该环境未配置,请联系管理员'
);
if
(
!
url
.
includes
(
'https'
))
return
;
setLinkUrl
(
url
);
};
...
...
@@ -231,10 +231,10 @@ const Demonstration = props => {
<
/div
>
);
}
const
isJump
=
col
.
site
||
(
col
[
'数值'
]
&&
col
[
'数值'
].
includes
(
'http'
));
const
isJump
=
col
.
site
||
(
col
[
'数值'
]
&&
col
[
'数值'
].
includes
(
'http
s
'
));
return
(
<
div
onClick
=
{()
=>
handToPlatform
(
col
)}
onClick
=
{()
=>
isJump
&&
handToPlatform
(
col
)}
className
=
{
styles
.
center_col
}
style
=
{{
flex
:
col
.
flex
}}
type
=
{
col
.
title
}
...
...
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