Commit 37d57924 by 张立顺

feat 调整多规格默认排序

1 parent 9fdcc826
......@@ -777,7 +777,8 @@ export default {
let skuItem = goodType[elIndex].propertyList.find((skuItem, skuItemIndex) => {
console.log(skuItem.name == el, skuItem.name, el)
// 取第一个默认选中
if (skuItem.name == el && index == res.upgradeGoodsSpecificationValueDTOS.length - 1) {
if (skuItem.name == el && index == 0) {
// if (skuItem.name == el && index == res.upgradeGoodsSpecificationValueDTOS.length - 1) {
goodType[elIndex].propertyList[skuItemIndex].selected = true
console.log(goodType, 'goodType')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!