提交 c218e8e2 作者: 龚洪江

修复:服务介绍修改问题

上级 29ddaf26
...@@ -53,7 +53,7 @@ const ServiceIntroduce = () => { ...@@ -53,7 +53,7 @@ const ServiceIntroduce = () => {
</div> </div>
<div className='service-introduce-title'></div> <div className='service-introduce-title'></div>
<div className='service-introduce-rich-text'> <div className='service-introduce-rich-text'>
<RichText value={serviceDetail?.serviceIntroduction} onChange={richTextChange} /> <RichText value={serviceDetail?.serviceIntroduction || ''} onChange={richTextChange} />
</div> </div>
</div> </div>
); );
......
...@@ -102,14 +102,11 @@ const ServiceList: FC<any> = () => { ...@@ -102,14 +102,11 @@ const ServiceList: FC<any> = () => {
title: '服务介绍', title: '服务介绍',
align: 'center', align: 'center',
dataIndex: 'serviceIntroduction', dataIndex: 'serviceIntroduction',
render: (text: string, record) => render: (_text: string, record) => (
text ? ( <Button type='link' onClick={() => toServiceIntroduce(record)}>
<Button type='link' onClick={() => toServiceIntroduce(record)}> 编辑
查看 </Button>
</Button> ),
) : (
'--'
),
}, },
{ {
title: '状态', title: '状态',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论