no message

main
이범준 1 year ago
parent 8f1b50a2ce
commit 8abce7f7fa

@ -72,6 +72,7 @@
<ul id="menus" class="menu-inner py-1"> <ul id="menus" class="menu-inner py-1">
</ul> </ul>
</aside> </aside>
<script src="<c:url value="/resources/js/fims/biz/layout/menuRender.js" />"></script>
<!-- / Menu --> <!-- / Menu -->
<c:set var="userMenus" scope="request">let userMenus = ${userMenus}; <c:set var="userMenus" scope="request">let userMenus = ${userMenus};
<%--if (menus.length < 1) <%--if (menus.length < 1)
@ -85,12 +86,7 @@
}, },
{"id":4, "name": "메뉴", "url":"/menu/list.do", "parentID":null, "description":"메뉴 관리", "imagePath":null, "displayWindow":"_self"} {"id":4, "name": "메뉴", "url":"/menu/list.do", "parentID":null, "description":"메뉴 관리", "imagePath":null, "displayWindow":"_self"}
];--%> ];--%>
function setUserMenus(menus) {
let menuSupport = new MenuSupport("#layout-menu").setMenuInfo(menus).setActive(wctx.current());
let currentMenu = menuSupport.getMenu(wctx.current());
if (currentMenu)
setPageTitle(currentMenu.name);
}
setUserMenus(userMenus); let mr = new FimsMenuSupport('');
mr.menuDraw(userMenus);
</c:set> </c:set>

@ -48,7 +48,7 @@ class FimsMenuSupport {
//메뉴 렌더링 //메뉴 렌더링
menuDraw(allMenuList){ menuDraw(allMenuList){
let rootUl = document.getElementById("sneatMenuUl"); let rootUl = document.getElementById("menus");
this.rootUlAttrDraw(rootUl); this.rootUlAttrDraw(rootUl);
for(let status1 = 0; status1 < allMenuList.length; status1++){ for(let status1 = 0; status1 < allMenuList.length; status1++){
@ -115,7 +115,7 @@ class FimsMenuSupport {
const menu1 = document.querySelector("#sneatMenu"); const menu1 = document.querySelector("#menus");
menu1.classList.add("menu"); menu1.classList.add("menu");
menu1.classList.add("menu-vertical"); menu1.classList.add("menu-vertical");
menu1.classList.add("bg-menu-theme"); menu1.classList.add("bg-menu-theme");

Loading…
Cancel
Save