[Vue warn]: Computed property "s
2018-03-09 本文已影响0人
运维经理
解决方案
selectMenu:{
get:function () {
let foods=[];
this.goods.forEach((good)=>{
good.foods.forEach((food)=>{
if(food.count){
foods.push(food);
}
})
})
return foods;
},
set:function (newVal) {
this.foods=newVal;
}
}