一些问题的修复

This commit is contained in:
xiaowang
2026-03-19 14:10:59 +08:00
parent 580a89c64d
commit 3527e248d1
50 changed files with 847 additions and 165 deletions
+5
View File
@@ -16,6 +16,11 @@ export const cartApi = {
return api.delete(`/cart/remove/${productId}`)
},
// 批量从购物车移除作品
batchRemoveFromCart: (cartItemIds: number[]) => {
return api.post('/cart/batch-remove', cartItemIds)
},
// 更新购物车作品数量
updateCartQuantity: (item: CartItem) => {
return api.put('/cart/update', item)