fix: 移除无用代码
This commit is contained in:
@@ -182,24 +182,6 @@ export function importFile(data: Record<string, any>) {
|
|||||||
data: obj,
|
data: obj,
|
||||||
dataType,
|
dataType,
|
||||||
});
|
});
|
||||||
if (data instanceof FormData) {
|
|
||||||
// 处理FormData类型的data
|
|
||||||
return request({
|
|
||||||
url: `/systemManagement/v1/elementType/${data.get(
|
|
||||||
'nfType'
|
|
||||||
)}/objectType/cm?ne_id=${data.get('nfId')}`,
|
|
||||||
method: 'post',
|
|
||||||
data,
|
|
||||||
dataType: 'form-data',
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// 处理普通对象类型的data
|
|
||||||
return request({
|
|
||||||
url: `/systemManagement/v1/elementType/${data.nfType}/objectType/cm?ne_id=${data.nfId}`,
|
|
||||||
method: 'post',
|
|
||||||
data: { fileName: data.fileName },
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user