From 8abce7f7fa0a6605cd23a3b6a523ecb2f1e602c4 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 12 Jun 2023 13:32:04 +0900 Subject: [PATCH] no message --- src/main/webapp/WEB-INF/jsp/include/userMenus.jsp | 10 +++------- .../webapp/resources/js/fims/biz/layout/menuRender.js | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) 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");