From 4e3148eb2d732391f06cc7c659c9175bc797c477 Mon Sep 17 00:00:00 2001 From: 188633308 <188633308@qq.com> Date: Sun, 25 Apr 2021 16:08:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=20root=E8=8F=9C=E5=8D=95=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/views/main/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }, }, };