[1092] : [特定の組み合わせの時、回路割付後のデータローディングが終わらない]
[작업내용] : 가대 생성시 api 호출 부분에 try catch로 로딩바 제거 로직 추가
This commit is contained in:
parent
b2ff662335
commit
a0cca5fbca
@ -212,9 +212,14 @@ export function useMasterController() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getQuotationItem = async (params) => {
|
const getQuotationItem = async (params) => {
|
||||||
return await post({ url: '/api/v1/master/getQuotationItem', data: params }).then((res) => {
|
return await post({ url: '/api/v1/master/getQuotationItem', data: params })
|
||||||
return res
|
.then((res) => {
|
||||||
})
|
return res
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.log('🚀 ~ getQuotationItem ~ error:', error)
|
||||||
|
setIsGlobalLoading(false)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -343,6 +343,7 @@ export function usePlan(params = {}) {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
swalFire({ text: error.message, icon: 'error' })
|
swalFire({ text: error.message, icon: 'error' })
|
||||||
|
setIsGlobalLoading(false)
|
||||||
})
|
})
|
||||||
return rtn
|
return rtn
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user