📌fix: 배치면 메뉴 이동시 체크 로직 수정
- confirm 창 띄우기 전 동작 금지
This commit is contained in:
parent
5777a550a3
commit
a731dc7dd4
@ -171,8 +171,6 @@ export default function CanvasMenu(props) {
|
||||
await reloadCanvasStatus(objectNo, pid)
|
||||
break
|
||||
case 3:
|
||||
console.log('🚀 ~ onClickNav ~ menu:', menu)
|
||||
console.log('🚀 ~ onClickNav ~ menuNumber:', menuNumber)
|
||||
if (menuNumber > menu.index) {
|
||||
const modules = canvas.getObjects().filter((module) => module.name === POLYGON_TYPE.MODULE)
|
||||
if (modules.length > 0) {
|
||||
@ -199,6 +197,7 @@ export default function CanvasMenu(props) {
|
||||
return
|
||||
},
|
||||
})
|
||||
return
|
||||
} else {
|
||||
setType('surface')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user