数组图片稽查校验修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-07-25 14:42:03 +08:00
parent eaf856a755
commit a56b536e95
1 changed files with 2 additions and 2 deletions

View File

@ -866,7 +866,7 @@ export default {
//
if (v.DataType === 'ArrayImage') {
let objArr = [], upObjArr = []
if (obj[v.Code] && obj[v.Code].length > 0) {
if (obj && obj[v.Code] && obj[v.Code].length > 0) {
obj[v.Code].forEach(item => {
if (item[v.ChildDataValue]) {
objArr.push(item[v.ChildDataValue])
@ -874,7 +874,7 @@ export default {
})
}
if (upObj[v.Code] && upObj[v.Code].length > 0) {
if (upObj && upObj[v.Code] && upObj[v.Code].length > 0) {
upObj[v.Code].forEach(item => {
if (item[v.ChildDataValue]) {
upObjArr.push(item[v.ChildDataValue])