commit
8cd948c730
@ -39,7 +39,10 @@ const mutations = {
|
|||||||
obj => obj.id === payload.id
|
obj => obj.id === payload.id
|
||||||
);
|
);
|
||||||
if (tarDishes) {
|
if (tarDishes) {
|
||||||
if (payload.dishesId || payload.type !== undefined) {
|
if (
|
||||||
|
payload.dishesId !== tarDishes.dishesId ||
|
||||||
|
payload.type !== undefined
|
||||||
|
) {
|
||||||
// 替换菜品
|
// 替换菜品
|
||||||
Object.keys(payload).forEach(key => {
|
Object.keys(payload).forEach(key => {
|
||||||
if (key === "num") {
|
if (key === "num") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user