Merge Q-CAST-III-MR-718: 발전시물레이션 캔버스메뉴 index에서 type으로 변경
This commit is contained in:
commit
acea8e2525
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user