메뉴 클릭시 새창 기능 추가

This commit is contained in:
2025-08-27 13:19:29 +09:00
parent f7f954a2a6
commit 5896d678e3
@@ -170,6 +170,12 @@ export function LNB({
const handleClick = () => {
if (!isSidebarOpen) setOpen(true);
setCookie("menu-code-key", item.menuCd.toString());
// newWndwYn이 Y인 경우 새창으로 열기
if (item.newWndwYn === "Y") {
window.open(item.urlPath, "_blank");
}
handleMenuClick?.(item);
};