|
|
@ -177,7 +177,9 @@
|
|
|
|
for (let item of data) {
|
|
|
|
for (let item of data) {
|
|
|
|
if (item.id === menuState.form.id) {
|
|
|
|
if (item.id === menuState.form.id) {
|
|
|
|
item.disabled = true;
|
|
|
|
item.disabled = true;
|
|
|
|
|
|
|
|
if (item.menuChild) {
|
|
|
|
item.menuChild = deep(item.menuChild, true);
|
|
|
|
item.menuChild = deep(item.menuChild, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.menuChild) {
|
|
|
|
if (item.menuChild) {
|
|
|
@ -188,7 +190,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log(deep(list));
|
|
|
|
|
|
|
|
return menuState.form.id ? deep(list) : list;
|
|
|
|
return menuState.form.id ? deep(list) : list;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const state = reactive({
|
|
|
|
const state = reactive({
|
|
|
|