fix root菜单读取问题

This commit is contained in:
2021-04-25 16:08:19 +08:00
parent 2567952f61
commit 4e3148eb2d

View File

@@ -82,7 +82,7 @@ export default {
delete info.menus; delete info.menus;
setGlobal(info); setGlobal(info);
data.apps.map((p) => (p.active = p.active === 'Y')); data.apps.map((p) => (p.active = p.active));
this.onSetNav(data); this.onSetNav(data);
this.nav.loading = false; this.nav.loading = false;
@@ -260,7 +260,9 @@ export default {
return m; return m;
}; };
this.nav.menus = children[0] ? serialize(children[0]) : new Array(); const rootId = '00000000-0000-0000-0000-000000000000';
this.nav.menus = children[rootId] ? serialize(children[rootId]) : new Array();
}, },
}, },
}; };