fix: 接口超时 180_1000

This commit is contained in:
TsMask
2023-11-01 17:53:59 +08:00
parent 25f7b105eb
commit 0835afa374
15 changed files with 25 additions and 20 deletions

View File

@@ -154,7 +154,7 @@ export function exportSet(data: Record<string, any>) {
headers: {
'Content-Type': 'application/octet-stream',
},
timeout: 60 * 1000,
timeout: 180_000,
});
}
@@ -182,7 +182,7 @@ export function importFile(data: Record<string, any>) {
method: 'post',
data: obj,
dataType,
timeout: 60 * 1000,
timeout: 180_000,
});
}
@@ -215,7 +215,7 @@ export function startNf(data: Record<string, any>) {
return request({
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/start?neId=${data.neId}`,
method: 'post',
timeout: 60 * 1000,
timeout: 180_000,
});
}
@@ -228,7 +228,7 @@ export function restartNf(data: Record<string, any>) {
return request({
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/restart?neId=${data.neId}`,
method: 'post',
timeout: 60 * 1000,
timeout: 180_000,
});
}
@@ -241,6 +241,6 @@ export function stopNf(data: Record<string, any>) {
return request({
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/stop?neId=${data.neId}`,
method: 'post',
timeout: 60 * 1000,
timeout: 180_000,
});
}