|
@@ -25,6 +25,10 @@ const modules = {
|
|
|
],
|
|
|
};
|
|
|
|
|
|
+const stripHtml = (html: string) => {
|
|
|
+ return html.replace(/<[^>]+>/g, '');
|
|
|
+};
|
|
|
+
|
|
|
const ActivityManagement: React.FC = () => {
|
|
|
const [createModalVisible, setCreateModalVisible] = useState<boolean>(false);
|
|
|
const [editModalVisible, setEditModalVisible] = useState<boolean>(false);
|
|
@@ -42,13 +46,17 @@ const ActivityManagement: React.FC = () => {
|
|
|
dataIndex: 'title',
|
|
|
copyable: true,
|
|
|
ellipsis: true,
|
|
|
- // tip: '标题过长会自动收缩',
|
|
|
+ render: (text, record) => {
|
|
|
+ return stripHtml(record.title);
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '活动内容',
|
|
|
dataIndex: 'content',
|
|
|
ellipsis: true,
|
|
|
- // tip: '内容过长会自动收缩',
|
|
|
+ render: (text, record) => {
|
|
|
+ return stripHtml(record.content);
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '是否激活',
|