fix: 个别接口超时时间60秒
This commit is contained in:
@@ -154,6 +154,7 @@ export function exportSet(data: Record<string, any>) {
|
||||
headers: {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
},
|
||||
timeout: 60 * 1000,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -181,6 +182,7 @@ export function importFile(data: Record<string, any>) {
|
||||
method: 'post',
|
||||
data: obj,
|
||||
dataType,
|
||||
timeout: 60 * 1000,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -213,6 +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,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -225,6 +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,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -237,5 +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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user