SBOM接口对接修复

This commit is contained in:
付民康
2025-03-19 21:47:34 +08:00
parent 85ee272662
commit 08b7dfc450
2 changed files with 73 additions and 36 deletions

View File

@@ -144,16 +144,12 @@ export const getVulnList = (data): Promise<any> => {
};
// 获取SBOM依赖树
export const dependencyTree = (softwareId: any): Promise<any> => {
export const dependencyTree = (data: any): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/dependency/tree`,
method: 'POST',
data: {
softwareId,
current: 1,
size: 99999
}
data
})
);
};