商品编辑数据可能被覆盖问题

master
chc 2024-01-23 16:51:10 +08:00
parent 3b9e54375a
commit a314373e64
1 changed files with 1 additions and 1 deletions

View File

@ -1634,7 +1634,7 @@ export default {
// alertQuantity: skus[index].alertQuantity,
cost: 1,
price: skus[index].price,
[spec[0].name]: specItem.value,
[spec[0].name]: skus[index][spec[0].name] ? skus[index][spec[0].name] : specItem.value,
images:
skus[index].images || this.baseInfoForm.goodsGalleryFiles || [],
};