fix: bugs

This commit is contained in:
汪少伟
2025-03-19 12:08:19 +08:00
parent 401cfbe05a
commit 8ae8dba0d4
9 changed files with 85 additions and 79 deletions

View File

@@ -122,29 +122,16 @@ export function getLicenseList() {
});
}
// 获取详情漏洞列表
export function getVulnerabilityList() {
return request({
url: '/api/v1/repo/vulnerability/page',
method: 'GET',
params: {
current: 1,
size: 10,
softwareId: 47
}
});
}
// 获取漏洞数据
export const getVulnList = (data): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/vulnerability/page`,
method: 'post',
data,
data
})
);
}
};
// 获取漏洞数据
export const getVulnDetail = (data): Promise<any> => {
@@ -152,7 +139,22 @@ export const getVulnDetail = (data): Promise<any> => {
request({
url: `/api/v1/repo/vulnerability/info`,
method: 'POST',
data,
data
})
);
}
};
// 获取漏洞数据
export const dependencyTree = (softwareId: any): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/dependency/tree`,
method: 'POST',
data: {
softwareId,
current: 1,
size: 99999
}
})
);
};