diff --git a/Web/src/views/main/index.vue b/Web/src/views/main/index.vue index bad3ca7..6a7ff49 100644 --- a/Web/src/views/main/index.vue +++ b/Web/src/views/main/index.vue @@ -82,7 +82,7 @@ export default { delete info.menus; setGlobal(info); - data.apps.map((p) => (p.active = p.active === 'Y')); + data.apps.map((p) => (p.active = p.active)); this.onSetNav(data); this.nav.loading = false; @@ -260,7 +260,9 @@ export default { 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(); }, }, };