Showing
1 changed file
with
2 additions
and
2 deletions
@@ -729,9 +729,9 @@ const setSizeData = (sizeInfo) => { | @@ -729,9 +729,9 @@ const setSizeData = (sizeInfo) => { | ||
729 | 729 | ||
730 | // 判断是否显示参考尺码 | 730 | // 判断是否显示参考尺码 |
731 | if (boyReference && (gender === 1 || gender === 3) && showReference) { | 731 | if (boyReference && (gender === 1 || gender === 3) && showReference) { |
732 | - sizes.push(value.boyReferSize.referenceName || ' '); | 732 | + sizes.push(_.get(value, 'boyReferSize.referenceName', ' ')); |
733 | } else if (girlReference && (gender === 2 || gender === 3) && showReference) { | 733 | } else if (girlReference && (gender === 2 || gender === 3) && showReference) { |
734 | - sizes.push(value.girlReferSize.referenceName || ' '); | 734 | + sizes.push(_.get(value, 'girlReferSize.referenceName', ' ')); |
735 | } else { | 735 | } else { |
736 | if (sizeTable.thead[1] && showReference) { | 736 | if (sizeTable.thead[1] && showReference) { |
737 | sizeTable.thead[1] = {}; | 737 | sizeTable.thead[1] = {}; |
-
Please register or login to post a comment