Open
Description
methods: {
addCart(event) {
// if (!event._constructed) {
// return;
// }
if (!this.food.count) {
this.$set(this.food, 'count', 1);
} else {
this.food.count++;
}
this.$store.commit({
type: 'initBallEle',
el: event.target
})
this.$root.$emit('add_cart');
},
decreaseCart(event) {
// if (!event._constructed) {
// return;
// }
if (this.food.count) {
this.food.count--;
}
}
}
Metadata
Metadata
Assignees
Labels
No labels