Compare commits
No commits in common. "b3e85a11dc333482883d4ee995a545fa6820045d" and "e3a139360330bfb95f31520bccb96300c3a6de5c" have entirely different histories.
b3e85a11dc
...
e3a1393603
@ -1,4 +1,4 @@
|
|||||||
'use client'
|
'ues client'
|
||||||
|
|
||||||
// import { correntObjectNoState } from '@/store/settingAtom'
|
// import { correntObjectNoState } from '@/store/settingAtom'
|
||||||
import { notFound, usePathname, useSearchParams } from 'next/navigation'
|
import { notFound, usePathname, useSearchParams } from 'next/navigation'
|
||||||
|
|||||||
@ -326,14 +326,9 @@ export function useCanvasSetting(executeEffect = true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const apiUrl = `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`
|
|
||||||
logger.log('🔍 fetchBasicSettings API 호출:', apiUrl)
|
|
||||||
logger.log('🔍 correntObjectNo:', correntObjectNo, 'planNo:', planNo)
|
|
||||||
|
|
||||||
await get({
|
await get({
|
||||||
url: apiUrl,
|
url: `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
logger.log('📦 API 응답 데이터:', res)
|
|
||||||
let roofsRow = {}
|
let roofsRow = {}
|
||||||
let roofsArray = {}
|
let roofsArray = {}
|
||||||
|
|
||||||
@ -393,10 +388,7 @@ export function useCanvasSetting(executeEffect = true) {
|
|||||||
|
|
||||||
/** 메뉴에서 배치면 초기설정 클릭 시 실행하지 않음 */
|
/** 메뉴에서 배치면 초기설정 클릭 시 실행하지 않음 */
|
||||||
if (openPoint === null) {
|
if (openPoint === null) {
|
||||||
logger.log('🎯 팝업 열기 조건 충족: openPoint=', openPoint, 'res.length=', res.length)
|
|
||||||
/** 배치면 초기설정 미저장 상태이면 화면 열기 */
|
/** 배치면 초기설정 미저장 상태이면 화면 열기 */
|
||||||
// 다른 closeAll 호출이 끝날 때까지 기다림
|
|
||||||
//setTimeout(() => {
|
|
||||||
const placementInitialProps = {
|
const placementInitialProps = {
|
||||||
id: popupId,
|
id: popupId,
|
||||||
pos: {
|
pos: {
|
||||||
@ -407,9 +399,6 @@ export function useCanvasSetting(executeEffect = true) {
|
|||||||
openPoint: 'useCanvasSetting',
|
openPoint: 'useCanvasSetting',
|
||||||
}
|
}
|
||||||
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
|
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
|
||||||
// },50)
|
|
||||||
} else {
|
|
||||||
logger.log('❌ 팝업 열기 조건 불충족: openPoint=', openPoint)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user