Browse Source

购物车删除

Xiao_123 6 months ago
parent
commit
8b7f28b9fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/mall/cart/index.vue

+ 1 - 1
src/views/mall/cart/index.vue

@@ -130,7 +130,7 @@ const totalCount = computed(() => {
 
 // 删除购物车中的商品
 const handleDelete = async (isAll, id) => {
-  const ids = isAll ? selectedData.value.join(',') : [id]
+  const ids = isAll ? selectedData.value.join(',') : id
   await deleteCartGoods(ids)
   await getCartList()
 }