fix root菜单读取问题
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user