탭처리 수정

dev
mjkhan21 5 months ago
parent 4bdf1714dc
commit 52fd32c96f

@ -75,7 +75,6 @@ ${userMenus}
const FIRST_PAGE = wctx.url("/adds/nims/dsuseMgtReceipt.do");
let mainTabs = new TabControl({
sticky: {},
getMenu: (url) => menuSupport.getMenu(url),
onDatasetChange: tabs => {
let template = document.getElementById("main-tab").innerHTML,
@ -94,7 +93,7 @@ let mainTabs = new TabControl({
);
},
onCurrentChange: tab => {
if (!tab.data) return;
if (!tab || !tab.data) return;
let url = tab.data.url;
menuSupport.setActive(url);

Loading…
Cancel
Save