Commit 842025a3 authored by 武广's avatar 武广

fix: 修改删除菜品把所有组都删除的问题

parent feea3c1f
......@@ -221,8 +221,8 @@ const FormPackage = forwardRef((props, ref) => {
const arrList = getFieldsValue();
const len = arr[i].children[j].dishes.length;
if (len === 1) {
arr[i].children = [];
arrList.lists[i].children = [];
arr[i].children.splice(j, 1);
arrList.lists[i].children.splice(j, 1);
} else {
arr[i].children[j].dishes.splice(k, 1);
console.log('arrList :>> ', [...arrList.lists]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment