[1092] : [特定の組み合わせの時、回路割付後のデータローディングが終わらない]

[작업내용] : 가대 생성시 api 호출 부분에 try catch로 로딩바 제거 로직 추가
This commit is contained in:
yjnoh 2025-06-10 10:34:51 +09:00
parent b2ff662335
commit a0cca5fbca
2 changed files with 9 additions and 3 deletions

View File

@ -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)
})
} }
/** /**

View File

@ -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
} }