Merge pull request '[1165] 도면을 열고 있을 때, 상부 메뉴를 눌렀을 때의 거동 재수정' (#181) from dev into dev-deploy

Reviewed-on: #181
This commit is contained in:
ysCha 2025-07-07 11:10:13 +09:00
commit b1c4be187e

View File

@ -241,7 +241,7 @@ export default function Header(props) {
e.preventDefault() // e.preventDefault() //
e.stopPropagation() // e.stopPropagation() //
swalFire({ swalFire({
text : getMessage(common.link.confirm), // text : getMessage('common.link.confirm'), //
type : 'confirm', type : 'confirm',
confirmFn: () => { confirmFn: () => {
// //
@ -323,14 +323,28 @@ export default function Header(props) {
<h1 className="logo"> <h1 className="logo">
<Link <Link
href={'/'} href={'/'}
onClick={() => { onClick={(e) => {
setStuffSearch({ setStuffSearch({
...stuffSearch, ...stuffSearch,
code: 'DELETE', code: 'DELETE',
}) })
if (pathName === '/') { if (pathName === '/') {
window.location.reload() 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('/')
}
})
} }
}} }}
></Link> ></Link>
</h1> </h1>