From d894a486cae4ca1df18c394e95d5d926a1b68afa Mon Sep 17 00:00:00 2001 From: seaHi Date: Fri, 25 Sep 2026 09:30:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BA=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=88=86=E6=9E=90=E9=9D=A2=E6=9D=BF=E5=9B=BE=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=8B=AC=E7=AB=8B=E7=9A=84=E5=A4=9A=20Y=20=E8=BD=B4?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/admin/AnalyticsPanel.svelte | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/components/admin/AnalyticsPanel.svelte b/src/lib/components/admin/AnalyticsPanel.svelte index a24a507..82e7aac 100644 --- a/src/lib/components/admin/AnalyticsPanel.svelte +++ b/src/lib/components/admin/AnalyticsPanel.svelte @@ -69,7 +69,8 @@ borderColor: '#333', backgroundColor: 'rgba(0,0,0,0.05)', tension: 0.3, - fill: true + fill: true, + yAxisID: 'y' }, { label: '缓存命中数', @@ -77,7 +78,8 @@ borderColor: '#4caf50', backgroundColor: 'rgba(76, 175, 80, 0.1)', tension: 0.3, - fill: true + fill: true, + yAxisID: 'y1' } ] }, @@ -96,7 +98,19 @@ }, scales: { y: { + type: 'linear', + display: true, + position: 'left', beginAtZero: true + }, + y1: { + type: 'linear', + display: true, + position: 'right', + beginAtZero: true, + grid: { + drawOnChartArea: false + } } } }