fix: 个别接口超时时间60秒

This commit is contained in:
TsMask
2023-11-01 17:43:31 +08:00
parent d16d044a7e
commit 150f547e50
4 changed files with 9 additions and 0 deletions

View File

@@ -76,5 +76,6 @@ export async function downloadNeBackup(data: Record<string, any>) {
url: `/api/rest/systemManagement/v1/${data.neType}/neBackup/${data.fileName}`,
method: 'get',
responseType: 'blob',
timeout: 60 * 1000,
});
}

View File

@@ -67,5 +67,6 @@ export function uploadLicense(data: FormData) {
method: 'post',
data,
dataType: 'form-data',
timeout: 60 * 1000,
});
}

View File

@@ -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,
});
}

View File

@@ -80,6 +80,7 @@ export async function downloadNeSoftware(data: Record<string, any>) {
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}`,
method: 'get',
responseType: 'blob',
timeout: 60 * 1000,
});
}
@@ -96,6 +97,7 @@ export function uploadNeSoftware(data: FormData) {
method: 'post',
data,
dataType: 'form-data',
timeout: 60 * 1000,
});
}