1. When two table fields are similar, but one or two fields are different, we can extract the different fields separately in the form of objects and 情况push
just enter according to them.
2.
Code reference
const change =
{
title: '操作',
dataIndex: 'operate',
key: 'operate',
width: '15%',
align: 'center',
render: (text, record) => {
return (
<span>
</span>
);
},
}
if () {
columns.push(change);
}