From 3e52edfeeafc57474035ac82a66ebabcec377ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=B0=91=E4=BC=9F?= Date: Wed, 19 Mar 2025 13:04:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E5=8F=91=E8=80=85=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E4=BF=A1=E6=81=AFapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jyh/index.ts | 12 ++ src/components/ChartLine/index.vue | 141 +++++++++--------- .../Jyh/Version/Detail/CommunityInfo.vue | 27 +++- src/views/Jyh/Version/Detail/SBOM.vue | 10 +- 4 files changed, 112 insertions(+), 78 deletions(-) diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index c1eb934..41e7237 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -148,6 +148,18 @@ export const dependencyTree = (softwareId: any): Promise => { }) ); }; +// 获取开发者社区信息 +export const communityInfo = (softwareId: any): Promise => { + return reqCatchV2(() => + request({ + url: `/api/v1/repo/community/info`, + method: 'POST', + data: { + softwareId + } + }) + ); +}; // 编辑用户信息(包含订阅默认预警方式) export const userEdit = (data: any): Promise => { diff --git a/src/components/ChartLine/index.vue b/src/components/ChartLine/index.vue index ccccbde..fffa54f 100644 --- a/src/components/ChartLine/index.vue +++ b/src/components/ChartLine/index.vue @@ -1,5 +1,5 @@ -