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
01166bec
Commit
01166bec
authored
Jun 05, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '集成登录图片上传逻辑优化'
parent
6c87c4d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+5
-0
PreviewModal.jsx
src/pages/platformCenter/integratedLogin/PreviewModal.jsx
+0
-1
No files found.
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
01166bec
...
...
@@ -71,6 +71,7 @@ const AddModal = props => {
const
[
pick
,
setPick
]
=
useState
(
''
);
// 复选框数据填入项
const
[
keepIds
,
setKeepIds
]
=
useState
(
null
);
const
[
account
,
setAccount
]
=
useState
(
0
);
const
[
isFromLocal
,
setIsFromLocal
]
=
useState
(
false
);
const
key
=
CryptoJS
.
enc
.
Utf8
.
parse
(
'1p2a3n4d5a6o7m8s9a10n1e2t3c4o5re'
);
// 十六位十六进制数作为密钥
const
iv
=
CryptoJS
.
enc
.
Utf8
.
parse
(
'1234567890000000'
);
...
...
@@ -385,11 +386,13 @@ const AddModal = props => {
message
.
error
(
'请选择图标!'
);
return
;
}
if
(
!
isFromLocal
)
{
if
(
obj
.
iconUrl
.
includes
(
'CityTemp'
)
&&
obj
.
iconUrl
.
includes
(
'图库'
))
{
obj
.
iconUrl
=
obj
.
iconUrl
;
}
else
{
obj
.
iconUrl
=
'CityTemp
\\
图库
\
\'
+ obj.iconUrl;
}
}
if (type === '
add
') {
AddIntegratedLogin({
systemName: obj.systemName,
...
...
@@ -540,6 +543,7 @@ const AddModal = props => {
// };
// });
if (info.file.response.code === 0) {
setIsFromLocal(false)
console.log('
触发咯
');
if (
info.file.response.data.includes('
CityTemp
') &&
...
...
@@ -612,6 +616,7 @@ const AddModal = props => {
// setImageUrl(window.location.origin + `/${props.path}`);
// setIm(props.path);
// setKeepImgeUrl(props.path);
setIsFromLocal(true);
form.setFieldsValue({ iconUrl: `${props.path}` });
}
};
...
...
src/pages/platformCenter/integratedLogin/PreviewModal.jsx
View file @
01166bec
...
...
@@ -21,7 +21,6 @@ const PreviewModal = props => {
useEffect
(()
=>
{
console
.
log
(
imageUrl
);
console
.
log
(
keepImgeUrl
);
debugger
console
.
log
(
type
);
console
.
log
(
process
.
env
,
'process.env.PROXY'
);
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