Merge Q-CAST-III-MR-713: 견적서 로딩바 수정

This commit is contained in:
상연 정 2025-02-20 07:26:04 +00:00 committed by Space Cloud
commit e580c88aa6
No known key found for this signature in database
GPG Key ID: 2F4D45726235F749

View File

@ -221,6 +221,7 @@ export default function CanvasMenu(props) {
await reloadCanvasStatus(objectNo, pid)
break
case 5:
setIsGlobalLoading(true)
promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => {
if (res.status === 200) {
const estimateDetail = res.data
@ -230,6 +231,9 @@ export default function CanvasMenu(props) {
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
setIsGlobalLoading(false)
router.push(`/floor-plan/estimate/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
if (pathname === '/floor-plan/estimate/5') {
setIsGlobalLoading(false)
}
} else {
setIsGlobalLoading(false)
swalFire({ text: getMessage('estimate.menu.move.valid1') })