|
@@ -171,7 +171,7 @@ export default {
|
|
if (!this.isHideGoods || this.selectFoods.length <= 2) {
|
|
if (!this.isHideGoods || this.selectFoods.length <= 2) {
|
|
result = this.selectFoods
|
|
result = this.selectFoods
|
|
} else if (this.selectFoods.length > 2) {
|
|
} else if (this.selectFoods.length > 2) {
|
|
- result = [this.selectFoods[0], this.selectFoods[1]]
|
|
|
|
|
|
+ result = this.selectFoods.slice(0, 2)
|
|
}
|
|
}
|
|
return result
|
|
return result
|
|
},
|
|
},
|