去除多余代码

This commit is contained in:
fantasticbin 2022-06-20 18:30:01 +08:00
parent 97f8e328ca
commit 812bf3afc0

View File

@ -42,7 +42,7 @@ export default {
if (this.numbers[product.id] === undefined) { if (this.numbers[product.id] === undefined) {
// this.$set(this.numbers, product.id, 1); // this.$set(this.numbers, product.id, 1);
// Vue 3 // Vue 3
this.numbers[product.id] = product.inventory ? 1 : 0; this.numbers[product.id] = 1;
} }
}); });
}, },