Commit f538ce7d by linjinhong

fix:修改播种墙问题

parent 55e9c8f2
......@@ -792,7 +792,18 @@ const initOrderDetailBox = async () => {
if (d.productMark === 'normal' || d.productMark === 'custom_normal') {
d.previewImgs = [{ url: d.variantImage || '' }]
} else {
if (!d.previewImgs) d.previewImgs = JSON.parse(d.imageAry || '[]')
if (!d.previewImgs) {
try {
d.previewImgs = JSON.parse(d.imageAry || '[]')
} catch {
console.log('生产订单:', d)
// 只有是有效URL才创建对象
d.previewImgs = d.imageAry?.startsWith?.('http')
? [{ url: d.imageAry, sort: 1, title: '正' }]
: []
}
}
}
})
})
......
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