From e4e1757977e32f663af586a27c0f3c01082e434d Mon Sep 17 00:00:00 2001 From: Wenyan Date: Wed, 26 Nov 2025 18:55:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E5=AD=97=E6=AE=B5=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正后端API字段名称: - pass_rate_growth → monthly_pass_rate_growth - issues_detected → monthly_detected_issues - issues_growth → monthly_issues_growth 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/api/home/home.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/api/home/home.ts b/app/api/home/home.ts index e3c4814..ca0c860 100644 --- a/app/api/home/home.ts +++ b/app/api/home/home.ts @@ -88,12 +88,12 @@ interface BackendStatisticsResponse { is_up: boolean; }; monthly_pass_rate: number; - pass_rate_growth: { + monthly_pass_rate_growth: { value: number; is_up: boolean; }; - issues_detected: number; - issues_growth: { + monthly_detected_issues: number; + monthly_issues_growth: { value: number; is_up: boolean; }; @@ -172,13 +172,13 @@ export async function getHomeData(reviewType?: string | null, userId?: string | }, monthlyPassRate: backendData.monthly_pass_rate, passRateGrowth: { - value: backendData.pass_rate_growth.value, - isUp: backendData.pass_rate_growth.is_up + value: backendData.monthly_pass_rate_growth.value, + isUp: backendData.monthly_pass_rate_growth.is_up }, - issuesDetected: backendData.issues_detected, + issuesDetected: backendData.monthly_detected_issues, issuesGrowth: { - value: backendData.issues_growth.value, - isUp: backendData.issues_growth.is_up + value: backendData.monthly_issues_growth.value, + isUp: backendData.monthly_issues_growth.is_up } }; } catch (error) {