嗨,我正在学习对redux的反应,我不知道如何将表格放在项目中。
这是我的减速器
case FETCH_CART_PRODUCTS:
return {
...state ,
items: action.payload
}
case PURCHASE:
return {
...state,
orders: action.payload
};
case FETCH_ORDERS:
return {
...state,
orders: action.payload
}
case TABLE_NUMBER:
return {
...state,
table: action.payload
}
default:
return state;
} }
谢谢您的回答!
答案 0 :(得分:0)