fix: 权限

feature/permission-0723-ch
ch 2 years ago
parent d68a72a699
commit 5077a1c7a8

@ -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({

Loading…
Cancel
Save