From 08b7dfc450498927da691c482a0b45467cd93e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Wed, 19 Mar 2025 21:47:34 +0800 Subject: [PATCH] =?UTF-8?q?SBOM=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jyh/index.ts | 8 +- src/views/Jyh/Version/Detail/SBOM.vue | 101 ++++++++++++++++++-------- 2 files changed, 73 insertions(+), 36 deletions(-) diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index 91d5d4a..17a2f74 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -144,16 +144,12 @@ export const getVulnList = (data): Promise => { }; // 获取SBOM依赖树 -export const dependencyTree = (softwareId: any): Promise => { +export const dependencyTree = (data: any): Promise => { return reqCatchV2(() => request({ url: `/api/v1/repo/dependency/tree`, method: 'POST', - data: { - softwareId, - current: 1, - size: 99999 - } + data }) ); }; diff --git a/src/views/Jyh/Version/Detail/SBOM.vue b/src/views/Jyh/Version/Detail/SBOM.vue index 98aff54..5105c4a 100644 --- a/src/views/Jyh/Version/Detail/SBOM.vue +++ b/src/views/Jyh/Version/Detail/SBOM.vue @@ -5,28 +5,28 @@
- - + + - +
- +