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
a1f272a9
Commit
a1f272a9
authored
Jun 13, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '集成登录网站配置图片上传逻辑优化'
parent
3614667c
Pipeline
#74166
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Master.jsx
src/pages/platformCenter/integratedLogin/Master.jsx
+10
-0
No files found.
src/pages/platformCenter/integratedLogin/Master.jsx
View file @
a1f272a9
...
...
@@ -62,6 +62,7 @@ const Master = props => {
const
[
radio
,
setRadio
]
=
useState
();
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
keepSettings
,
setKeepSettings
]
=
useState
([]);
const
[
isFromLocal
,
setIsFromLocal
]
=
useState
(
false
);
useEffect
(()
=>
{
if
(
visible
)
{
...
...
@@ -164,6 +165,13 @@ const Master = props => {
message
.
error
(
'请选择登录Logo!'
);
return
;
}
if
(
!
isFromLocal
)
{
if
(
obj
.
logo
.
includes
(
'CityTemp'
)
&&
obj
.
logo
.
includes
(
'图库'
))
{
obj
.
logo
=
obj
.
logo
;
}
else
{
obj
.
logo
=
'CityTemp
\\
图库
\
\'
+ obj.logo;
}
}
AddIntegratedloginSetting({
logo: obj.logo,
primaryColor: obj.primaryColor,
...
...
@@ -235,6 +243,7 @@ const Master = props => {
}
if (info.file.response.code === 0) {
setIsFromLocal(false);
setImageUrl(getImg(info.file.response.data));
setLoading(false);
} else {
...
...
@@ -286,6 +295,7 @@ const Master = props => {
setIm(props.path);
setKeepImgeUrl(props.path);
form.setFieldsValue({ logo: `${props.path}` });
setIsFromLocal(true);
}
};
...
...
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