提交 f746de4c 作者: 龚洪江

修复:飞手中心详情图片,需求收集详情图片

上级 82f8a280
......@@ -111,7 +111,13 @@ const FlyerDetail = () => {
{flyerDetail?.abilityUrl ? (
<Image.PreviewGroup>
{JSON.parse(flyerDetail?.abilityUrl).map((v: string, index: number) => (
<Image src={v} key={index} width={100} rootClassName='ability-img' />
<Image
src={v}
key={index}
width={100}
height={100}
rootClassName='ability-img'
/>
))}
</Image.PreviewGroup>
) : (
......
......@@ -5,6 +5,7 @@ import { InterDataType } from '~/api/interface';
import { backDetailPublishType } from '~/api/interface/resourceManageType';
import { Button, Descriptions, Image } from 'antd';
import { useNavigate } from 'react-router-dom';
import './index.scss';
//需求详情返回类型
type detailType = InterDataType<backDetailPublishType>;
......@@ -50,7 +51,13 @@ const GatherDetail = () => {
<Image.PreviewGroup>
{publishDetails?.requireUrl
? JSON.parse(publishDetails?.requireUrl).map((url: string, index: number) => (
<Image src={url} width={50} key={index} />
<Image
src={url}
width={50}
height={50}
key={index}
rootClassName='gather-detail-img'
/>
))
: ''}
</Image.PreviewGroup>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论