解决方案
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;
}
}
解决方案
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;
}
}
本文标题:[Vue warn]: Computed property "s
本文链接:https://www.haomeiwen.com/subject/zvypfftx.html
网友评论