fix: post 통신 timeout 설정

mpower
sjh88 2 years ago
parent 7622b85232
commit 55da0f001d

@ -29,6 +29,9 @@ import {
import { setRowId } from './common';
import _ from 'lodash';
// 23.04.06 sjh 통신 오래걸리는 작업이 있을 경우 적용
const configCustom = { timeout: 300000 };
export async function findDashboard() {
const res = await axios.get(GET_DASHBOARD);
if (res.success) {
@ -168,7 +171,7 @@ export async function removeJudge(params) {
export async function saveJudgeStds(params) {
// eslint-disable-next-line no-return-await
return await axios.post(SAVE_ADMIN_JUDGE_STDS, params);
return await axios.post(SAVE_ADMIN_JUDGE_STDS, params, configCustom);
}
//----------------------------------------------------------------

@ -12,6 +12,9 @@ import {
} from 'commons/ApiUrl';
import { setRowId } from './common';
// 23.04.06 sjh 통신 오래걸리는 작업이 있을 경우 적용
const configCustom = { timeout: 300000 };
// eslint-disable-next-line no-return-await
export async function findParkings(params) {
const res = await axios.get(GET_PARKING_LIST, { params });
@ -33,7 +36,7 @@ export async function findParkingJudgeTargets(params) {
export async function saveParkingJudgeTargets(params) {
// eslint-disable-next-line no-return-await
return await axios.post(SAVE_PARKING_JUDGE_TARGET_LIST, params);
return await axios.post(SAVE_PARKING_JUDGE_TARGET_LIST, params, configCustom);
}
export async function removeParkingJudge(params) {

Loading…
Cancel
Save