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
44495de9
Commit
44495de9
authored
May 25, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复集成登录图标回显是选中状态消失的问题'
parent
fc3337c9
Pipeline
#73168
waiting for manual action with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+6
-5
PreviewModal.jsx
src/pages/platformCenter/integratedLogin/PreviewModal.jsx
+3
-0
No files found.
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
44495de9
...
@@ -127,7 +127,7 @@ const AddModal = props => {
...
@@ -127,7 +127,7 @@ const AddModal = props => {
// setImageUrl(window.location.origin + `/${pickItem.iconUrl}`);
// setImageUrl(window.location.origin + `/${pickItem.iconUrl}`);
if
(
!
pickItem
.
iconUrl
.
includes
(
'images'
))
{
if
(
!
pickItem
.
iconUrl
.
includes
(
'images'
))
{
setImageUrl
(
getImg
(
pickItem
.
iconUrl
));
setImageUrl
(
getImg
(
pickItem
.
iconUrl
));
setIm
(
getImg
(
pickItem
.
iconUrl
)
);
setIm
(
pickItem
.
iconUrl
);
}
else
{
}
else
{
if
(
if
(
pickItem
.
iconUrl
.
startsWith
(
'CityTemp'
)
||
pickItem
.
iconUrl
.
startsWith
(
'CityTemp'
)
||
...
@@ -137,6 +137,7 @@ const AddModal = props => {
...
@@ -137,6 +137,7 @@ const AddModal = props => {
}
else
{
}
else
{
setImageUrl
(
window
.
location
.
origin
+
`/
${
pickItem
.
iconUrl
}
`
);
setImageUrl
(
window
.
location
.
origin
+
`/
${
pickItem
.
iconUrl
}
`
);
}
}
setIm
(
pickItem
.
iconUrl
);
}
}
// }
// }
}
else
{
}
else
{
...
@@ -588,12 +589,12 @@ const AddModal = props => {
...
@@ -588,12 +589,12 @@ const AddModal = props => {
if
(
props
)
{
if
(
props
)
{
if
(
!
props
.
path
.
includes
(
'images'
))
{
if
(
!
props
.
path
.
includes
(
'images'
))
{
setImageUrl
(
getImg
(
props
.
path
));
setImageUrl
(
getImg
(
props
.
path
));
setIm
(
getImg
(
props
.
path
)
);
setIm
(
props
.
path
);
setKeepImgeUrl
(
getImg
(
props
.
path
)
);
setKeepImgeUrl
(
props
.
path
);
}
else
{
}
else
{
setImageUrl
(
window
.
location
.
origin
+
`/
${
props
.
path
}
`
);
setImageUrl
(
window
.
location
.
origin
+
`/
${
props
.
path
}
`
);
setIm
(
window
.
location
.
origin
+
`/
${
props
.
path
}
`
);
setIm
(
props
.
path
);
setKeepImgeUrl
(
window
.
location
.
origin
+
`/
${
props
.
path
}
`
);
setKeepImgeUrl
(
props
.
path
);
}
}
// setImageUrl(window.location.origin + `/${props.path}`);
// setImageUrl(window.location.origin + `/${props.path}`);
// setIm(props.path);
// setIm(props.path);
...
...
src/pages/platformCenter/integratedLogin/PreviewModal.jsx
View file @
44495de9
...
@@ -19,6 +19,9 @@ const PreviewModal = props => {
...
@@ -19,6 +19,9 @@ const PreviewModal = props => {
const
[
keepGroupName
,
setKeepGroupName
]
=
useState
([]);
const
[
keepGroupName
,
setKeepGroupName
]
=
useState
([]);
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
imageUrl
);
console
.
log
(
keepImgeUrl
);
debugger
console
.
log
(
type
);
console
.
log
(
type
);
console
.
log
(
process
.
env
,
'process.env.PROXY'
);
console
.
log
(
process
.
env
,
'process.env.PROXY'
);
setPickItem
(
''
);
setPickItem
(
''
);
...
...
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