func : 계약관리 등록폼

- 가격조사 가져오기 활성화
This commit is contained in:
Kasi
2025-05-26 18:00:29 +09:00
parent 7edc101ade
commit 221c434936
6 changed files with 254 additions and 223 deletions

View File

@@ -17,12 +17,6 @@ export async function getIntegratedApproval(params = {}) {
console.log(result)
if (result.status === 200) {
return result.data
} else if (result.status >= 500) {
throw new Error('서버 오류가 발생했습니다.')
} else if (result.status >= 400) {
throw new Error('잘못된 요청입니다.')
} else {
throw new Error(`예상치 못한 상태코드: ${result.status}`)
}
} catch (e) {
if (e.response) {
@@ -55,10 +49,6 @@ export async function updateIntegratedApproval(params = {}) {
})
if (result.status === 200) {
return result.data
} else if (result.status >= 500) {
throw new Error('서버 오류가 발생했습니다.')
} else {
throw new Error(`예상치 못한 상태코드: ${result.status}`)
}
}
catch (e) {