内容目录
let dom = value;
if (row.documents?.length) {
row.documents.map((item) => {
dom = dom.replaceAll(item, `<a>${item}</a>`);
});
}
return <div dangerouslySetInnerHTML={{ __html: dom }}></div>;
let dom = value;
if (row.documents?.length) {
row.documents.map((item) => {
dom = dom.replaceAll(item, `<a>${item}</a>`);
});
}
return <div dangerouslySetInnerHTML={{ __html: dom }}></div>;