fix: change import timeout as 10 min (#1221)
This commit is contained in:
parent
29e83515b9
commit
cabe8a51a2
@ -124,7 +124,11 @@ export const useImportStartAction = () => {
|
|||||||
setVisible(false);
|
setVisible(false);
|
||||||
setImportModalVisible(true);
|
setImportModalVisible(true);
|
||||||
setImportStatus(ImportStatus.IMPORTING);
|
setImportStatus(ImportStatus.IMPORTING);
|
||||||
const { data }: any = await apiClient.axios.post(`${name}:importXlsx`, formData, {}).catch((err) => {});
|
const { data }: any = await apiClient.axios
|
||||||
|
.post(`${name}:importXlsx`, formData, {
|
||||||
|
timeout: 10 * 60 * 1000,
|
||||||
|
})
|
||||||
|
.catch((err) => {});
|
||||||
setImportResult(data);
|
setImportResult(data);
|
||||||
form.reset();
|
form.reset();
|
||||||
await service?.refresh?.();
|
await service?.refresh?.();
|
||||||
|
Loading…
Reference in New Issue
Block a user