This commit is contained in:
pushuo 2022-06-28 21:10:42 +08:00
parent 28710ed50a
commit cf4dd8fb81
1 changed files with 4 additions and 2 deletions

View File

@ -108,7 +108,9 @@
return !this.products.length ? false : this.products.every(s => s.selected)
},
set(val) {
return this.products.map(e => e.selected = val)
// return
this.products.map(e => e.selected = val)
this.selectedBtnSelected()
}
},
},
@ -154,7 +156,7 @@
$.ajax({
url: `/carts/select`,
type: 'POST',
data: {sku_ids: cart_ids},
data: {cart_ids: cart_ids},
success: function(res) {
self.setUpdateData(res);
}