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

fix: 优化代码

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