diff --git a/src/main/webapp/WEB-INF/jsp/include/userMenus.jsp b/src/main/webapp/WEB-INF/jsp/include/userMenus.jsp index 1b077a26..76120649 100644 --- a/src/main/webapp/WEB-INF/jsp/include/userMenus.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/userMenus.jsp @@ -72,6 +72,7 @@ + let userMenus = ${userMenus}; <%--if (menus.length < 1) @@ -85,12 +86,7 @@ }, {"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); \ No newline at end of file diff --git a/src/main/webapp/resources/js/fims/biz/layout/menuRender.js b/src/main/webapp/resources/js/fims/biz/layout/menuRender.js index e3aed4c1..8616eb9f 100644 --- a/src/main/webapp/resources/js/fims/biz/layout/menuRender.js +++ b/src/main/webapp/resources/js/fims/biz/layout/menuRender.js @@ -48,7 +48,7 @@ class FimsMenuSupport { //메뉴 렌더링 menuDraw(allMenuList){ - let rootUl = document.getElementById("sneatMenuUl"); + let rootUl = document.getElementById("menus"); this.rootUlAttrDraw(rootUl); 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-vertical"); menu1.classList.add("bg-menu-theme");