Merge Q-CAST-III-MR-718: 발전시물레이션 캔버스메뉴 index에서 type으로 변경

This commit is contained in:
YONGJAE LEE 2025-02-25 01:06:53 +00:00 committed by Space Cloud
commit acea8e2525
No known key found for this signature in database
GPG Key ID: 2F4D45726235F749

View File

@ -257,7 +257,7 @@ export default function CanvasMenu(props) {
}
})
break
case 6:
case 'simulation':
setIsGlobalLoading(true)
promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => {
if (res.status === 200) {
@ -265,7 +265,7 @@ export default function CanvasMenu(props) {
if (estimateDetail.estimateDate !== null && estimateDetail.docNo) {
setSelectedMenu(menu.type)
setCurrentMenu(menu.title)
router.push(`/floor-plan/simulator/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
router.push(`/floor-plan/simulator/6?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
if (pathname === '/floor-plan/simulator/6') {
setIsGlobalLoading(false)
}