Commit ce85626c by zhaochengxiang

样本数据问题

parent b9cb11e2
...@@ -29,6 +29,7 @@ const FC = (props) => { ...@@ -29,6 +29,7 @@ const FC = (props) => {
const newCols = []; const newCols = [];
data?.headers?.forEach(item => { data?.headers?.forEach(item => {
if (item) {
newCols.push({ newCols.push({
title: item, title: item,
dataIndex: item, dataIndex: item,
...@@ -38,6 +39,7 @@ const FC = (props) => { ...@@ -38,6 +39,7 @@ const FC = (props) => {
<Typography.Text ellipsis={true}>{value}</Typography.Text> <Typography.Text ellipsis={true}>{value}</Typography.Text>
</Tooltip> </Tooltip>
}); });
}
}); });
setCols(newCols); setCols(newCols);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment