발전시뮬레이션 메뉴이동 로딩바 수정

This commit is contained in:
LEEYONGJAE 2025-02-20 16:04:32 +09:00
parent 1245bbb663
commit d9bb1deee8

View File

@ -239,7 +239,6 @@ export default function CanvasMenu(props) {
break break
case 6: case 6:
setIsGlobalLoading(true) setIsGlobalLoading(true)
// (Simulator.jsx) setIsGlobalLoading(false)
promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => { promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => {
if (res.status === 200) { if (res.status === 200) {
const estimateDetail = res.data const estimateDetail = res.data
@ -247,7 +246,9 @@ export default function CanvasMenu(props) {
setMenuNumber(menu.index) setMenuNumber(menu.index)
setCurrentMenu(menu.title) setCurrentMenu(menu.title)
router.push(`/floor-plan/simulator/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`) router.push(`/floor-plan/simulator/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
setIsGlobalLoading(false) if (pathname === '/floor-plan/simulator/6') {
setIsGlobalLoading(false)
}
} else { } else {
setIsGlobalLoading(false) setIsGlobalLoading(false)
swalFire({ text: getMessage('simulator.menu.move.valid1') }) swalFire({ text: getMessage('simulator.menu.move.valid1') })