From 42896a84734dd24b2c01987b994b0688f5a7b1a1 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 21 Jun 2026 10:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E3=80=8C24=20?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E8=AF=B7=E6=B1=82=E8=B6=8B=E5=8A=BF=E3=80=8D?= =?UTF-8?q?=E6=91=98=E8=A6=81=E8=AF=AF=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E8=AF=B7=E6=B1=82=E9=87=8F/=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=87=8F=EF=BC=9A=E6=94=B9=E4=B8=BA=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E8=BF=91=2024=20=E5=B0=8F=E6=97=B6=E6=80=BB=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog/index.md | 2 ++ .../components/dashboard/traffic-trend-chart.tsx | 14 ++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/changelog/index.md b/docs/changelog/index.md index 56a9689b..50ec157c 100644 --- a/docs/changelog/index.md +++ b/docs/changelog/index.md @@ -22,6 +22,8 @@ sidebar: false ### 修复 +- 修复仪表盘「24 小时请求趋势」摘要误显示当前小时请求量/错误量:改为汇总近 24 小时总量。 + - 修复 Pages 部署包上传报「请求超时,请稍后重试」:上传请求使用独立 10 分钟超时(覆盖默认 15 秒),并在大文件上传完成后提示服务端处理中。 - 修复应用日志异常膨胀:Agent 配置同步加锁避免并发重复上报,成功且版本/checksum 未变时跳过重复 apply 日志;Server 入库前对相同成功记录去重;Flared 配置未变更时不再上报 apply 日志。 diff --git a/frontend/app/(main)/components/dashboard/traffic-trend-chart.tsx b/frontend/app/(main)/components/dashboard/traffic-trend-chart.tsx index 7f02ffce..2be1746d 100644 --- a/frontend/app/(main)/components/dashboard/traffic-trend-chart.tsx +++ b/frontend/app/(main)/components/dashboard/traffic-trend-chart.tsx @@ -1,13 +1,7 @@ 'use client'; import {TrendChart} from '@/components/data/trend-chart'; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from '@/components/ui/card'; +import {Card, CardContent, CardDescription, CardHeader, CardTitle,} from '@/components/ui/card'; import type {TrafficTrendPoint} from '@/lib/services/openflare'; import {formatTrendHour} from './dashboard-utils'; @@ -30,8 +24,8 @@ export function TrafficTrendChart({ formatTrendHour(point.bucket_started_at))} - summaryScope="last-point" - summaryHint="当前小时" + summaryScope="total" + summaryHint="近 24 小时" series={[ { label: '请求量', @@ -50,4 +44,4 @@ export function TrafficTrendChart({ ); -} \ No newline at end of file +}