提交 c218e8e2 作者: 龚洪江

修复:服务介绍修改问题

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