fix: 接口变更/请求方法为大写

This commit is contained in:
TsMask
2025-02-20 10:42:34 +08:00
parent 8bfa73a67a
commit 7322759545
83 changed files with 568 additions and 1388 deletions

View File

@@ -15,7 +15,7 @@ export async function updateNeConfigReload(neType: string, neId: string) {
// 发起请求
const result = await request({
url: `/api/rest/operationManagement/v1/elementType/${neType}/objectType/mml?ne_id=${neId}`,
method: 'post',
method: 'POST',
data: { mml: ['reload'] },
timeout: 180_000,
});
@@ -53,7 +53,7 @@ export async function getPCCRule(neId: any) {
request({
url: `/ne/config/data`,
params: { neType: 'PCF', neId, paramName },
method: 'get',
method: 'GET',
})
);
}
@@ -63,7 +63,7 @@ export async function getPCCRule(neId: any) {
resArr.forEach((item, i: number) => {
if (item.status === 'fulfilled') {
const res = item.value;
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
if (res.code === RESULT_CODE_SUCCESS) {
const key = paramNameArr[i];
obj[key] = res.data.map((item: any) => {
if ('qosTemplate' === key) {