배치면초기설정 데이터 존재 시에는 화면 초기 진입 시 open 제어
This commit is contained in:
parent
7b5c0b615c
commit
14ec7e6030
@ -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()
|
||||
|
||||
@ -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,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user