去除多余代码
This commit is contained in:
parent
97f8e328ca
commit
812bf3afc0
@ -42,7 +42,7 @@ export default {
|
||||
if (this.numbers[product.id] === undefined) {
|
||||
// this.$set(this.numbers, product.id, 1);
|
||||
// Vue 3 已不再需要动态设置数据属性绑定了
|
||||
this.numbers[product.id] = product.inventory ? 1 : 0;
|
||||
this.numbers[product.id] = 1;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user