🐞 fix(购物页面): 修复购物页面无法选中的问题
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user