Explorar o código

购物车删除

Xiao_123 hai 6 meses
pai
achega
8b7f28b9fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 }