diff --git a/src/views/User/ShoppingCart.vue b/src/views/User/ShoppingCart.vue index 4d866bb..46cf5da 100644 --- a/src/views/User/ShoppingCart.vue +++ b/src/views/User/ShoppingCart.vue @@ -156,8 +156,9 @@ export default { }) }) } else { - this.cartList.forEach(t=>{ + this.list.forEach(t=>{ t.selected = false + t.goods.forEach(v=>{v.selected = false}) }) } this.judgeSelectAll() @@ -171,6 +172,8 @@ export default { v.selected = true } }) + } else { + shop.goods.forEach(v=>{v.selected = false}) } this.judgeSelectAll() },