Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
ff487e85
Commit
ff487e85
authored
Oct 20, 2021
by
前端-李俊鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 自营商城关于我们图片回显问题
parent
d18f3db9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.tsx
src/components/ImgUpload/index.tsx
+2
-0
index.tsx
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
+2
-2
No files found.
src/components/ImgUpload/index.tsx
View file @
ff487e85
...
...
@@ -54,6 +54,7 @@ const ImgUpload = forwardRef((props: IProps, ref: any) => {
useImperativeHandle
(
ref
,
()
=>
({
setData
(
imgs
:
string
[])
{
if
(
imgs
)
{
const
newFileList
=
imgs
.
map
((
item
,
index
)
=>
{
return
{
uid
:
`uid
${
index
}
`
,
...
...
@@ -65,6 +66,7 @@ const ImgUpload = forwardRef((props: IProps, ref: any) => {
// 直接走一次回调,使值可以set进表单
handleChange
({
file
:
{
status
:
'success'
},
fileList
:
newFileList
})
// setFileList(newFileList)
}
},
}))
...
...
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
View file @
ff487e85
...
...
@@ -156,8 +156,8 @@ const OwnMallAboutUs = () => {
const
{
albumName
,
albumUrl
,
honorPics
,
workshopPics
,
...
rest
}
=
data
const
newAlbumUrls
=
albumName
&&
albumUrl
?
[{
name
:
albumName
,
url
:
albumUrl
}]
:
[]
workshopImgRef
.
current
?.
setData
(
workshopPics
)
honorImgRef
.
current
?.
setData
(
honorPics
)
workshop
Pics
&&
workshop
ImgRef
.
current
?.
setData
(
workshopPics
)
honor
Pics
&&
honor
ImgRef
.
current
?.
setData
(
honorPics
)
form
.
setFieldsValue
({
...
rest
,
albumUrls
:
newAlbumUrls
...
...
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