解决多属性商品选择多属性的时候接口报错的bug

This commit is contained in:
jishenghua 2024-12-31 00:29:03 +08:00
parent 11b8896577
commit a0ea3a8b7e

View File

@ -834,21 +834,21 @@
this.skuThreeTitle = item.name this.skuThreeTitle = item.name
} }
}) })
getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{ if(skuOneId) {
if(res) { getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{
this.skuOneList = res this.skuOneList = res? res:[]
} })
}) }
getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{ if(skuTwoId) {
if(res) { getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{
this.skuTwoList = res this.skuTwoList = res? res:[]
} })
}) }
getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{ if(skuThreeId) {
if(res) { getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{
this.skuThreeList = res this.skuThreeList = res? res:[]
} })
}) }
} }
//控制条码列表中的多属性列 //控制条码列表中的多属性列
if(value.length>0) { if(value.length>0) {