[1165] 도면을 열고 있을 때, 상부 메뉴를 눌렀을 때의 거동 재수정
This commit is contained in:
parent
3ab5aec767
commit
1750ba53fd
@ -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) {
|
||||
<h1 className="logo">
|
||||
<Link
|
||||
href={'/'}
|
||||
onClick={() => {
|
||||
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('/')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}}
|
||||
></Link>
|
||||
</h1>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user