This commit is contained in:
魏啾
2024-12-07 14:15:04 +08:00
parent cfb461829f
commit 6d8284e78f

View File

@@ -1751,6 +1751,8 @@
})
}
// 如果套餐没选择规格,默认选中第一条
console.log(submitData.proGroupVo)
if (submitData.proGroupVo) {
submitData.proGroupVo.forEach((res, index) => {
submitData.proGroupVo[index].goods.forEach(ele => {
if (!ele.skuId) {
@@ -1759,6 +1761,8 @@
}
})
})
}
submitData.selectSpec =
$addProduct(submitData).then(res => {
infoBox.showSuccessToast('添加成功')