From 1750ba53fdd30f2fd4250256e692268113ad6474 Mon Sep 17 00:00:00 2001 From: ysCha Date: Mon, 7 Jul 2025 11:07:31 +0900 Subject: [PATCH] =?UTF-8?q?[1165]=20=EB=8F=84=EB=A9=B4=EC=9D=84=20?= =?UTF-8?q?=EC=97=B4=EA=B3=A0=20=EC=9E=88=EC=9D=84=20=EB=95=8C,=20?= =?UTF-8?q?=EC=83=81=EB=B6=80=20=EB=A9=94=EB=89=B4=EB=A5=BC=20=EB=88=8C?= =?UTF-8?q?=EB=A0=80=EC=9D=84=20=EB=95=8C=EC=9D=98=20=EA=B1=B0=EB=8F=99=20?= =?UTF-8?q?=EC=9E=AC=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/header/Header.jsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/header/Header.jsx b/src/components/header/Header.jsx index 2e9f297c..8b37b134 100644 --- a/src/components/header/Header.jsx +++ b/src/components/header/Header.jsx @@ -241,7 +241,7 @@ export default function Header(props) { e.preventDefault() // 기본 네비게이션 방지 e.stopPropagation() // 이벤트 전파 방지 swalFire({ - text : getMessage(common.link.confirm), // 적절한 확인 메시지 + text : getMessage('common.link.confirm'), // 적절한 확인 메시지 type : 'confirm', confirmFn: () => { // 확인 버튼 클릭 시 실행 @@ -323,14 +323,28 @@ export default function Header(props) {

{ + onClick={(e) => { setStuffSearch({ ...stuffSearch, code: 'DELETE', }) if (pathName === '/') { window.location.reload() + } else if(pathName === '/floor-plan') { + e.preventDefault() // 기본 네비게이션 방지 + e.stopPropagation() // 이벤트 전파 방지 + swalFire({ + text: getMessage('common.link.confirm'), // 적절한 확인 메시지 + type: 'confirm', + confirmFn: () => { + // 확인 버튼 클릭 시 기존 로직 실행 + //removeStuffRecoil(m) + router.push('/') + } + }) } + + }} >