🐞 fix(购物页面): 修复购物页面无法选中的问题

This commit is contained in:
xuan
2023-01-04 10:06:47 +08:00
parent 9cd2f5579d
commit d0c8d945ff
2 changed files with 3 additions and 3 deletions
@@ -285,14 +285,14 @@ const ShoppingCartItem: FC<PropsType> = (props) => {
}
}, [itemData, multipleSelection, colorStore])
// 更新当前客户的多选项
const updatePurchaserMultipleSelection = (purchaserId, payload, operationType: OperationType, goodsId: number) => {
const updatePurchaserMultipleSelection = (purchaserId: number, payload: Goods, operationType: OperationType, goodsId: number) => {
if (operationType === 'add') {
dispatch({
type: ShoppingDispatchType.UPDATE_CHANGED_CHECKBOX,
data: {
purchaserId,
multipleSelection: {
...colorStore?.[purchaserId].multipleSelection,
...colorStore?.[purchaserId]?.multipleSelection,
[goodsId]: payload,
},
},