Commit 315f719e authored by 张子雨's avatar 张子雨

fix: 优化代码

parent 04eae7e5
......@@ -67,8 +67,9 @@ const TableList = props => {
setLogisticsComList(tempObj);
};
const renderContent = (record, key) =>
record.mchOrderSkuVoList.map((item, index) => (
const renderContent = (record, key) => {
if (record.mchOrderSkuVoList) {
return record?.mchOrderSkuVoList.map((item, index) => (
<p
className={[
'tableContent',
......@@ -92,6 +93,9 @@ const TableList = props => {
)}
</p>
));
}
return '';
};
const columns = [
{
......
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