배치면초기설정 데이터 존재 시에는 화면 초기 진입 시 open 제어

This commit is contained in:
changkyu choi 2025-02-07 15:55:00 +09:00
parent 7b5c0b615c
commit 14ec7e6030
2 changed files with 5 additions and 2 deletions

View File

@ -32,8 +32,8 @@ export default function FloorPlan({ children }) {
useEffect(() => {
if (!correntObjectNo) return // correntObjectNo
if(menuNumber === null) {
setMenuNumber(1)
if (menuNumber === null) {
//setMenuNumber(1)
}
fetchSettings()
fetchBasicSettings()

View File

@ -355,6 +355,8 @@ export function useCanvasSetting() {
roofAngle: 21.8,
},
]
setMenuNumber(1)
}
// 데이터 설정
@ -373,6 +375,7 @@ export function useCanvasSetting() {
layout: roofsArray[i].roofLayout,
roofSizeSet: roofsRow[i].roofSizeSet,
roofAngleSet: roofsRow[i].roofAngleSet,
roofDbData: roofsRow[i].roofDbData,
pitch: roofsArray[i].roofPitch,
angle: roofsArray[i].roofAngle,
})