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('/') + } + }) } + + }} >