From d02fec5914390180135e8bac18e31ea39491fa28 Mon Sep 17 00:00:00 2001
From: butubb <1422726308@qq.com>
Date: Sat, 10 Oct 2026 18:24:42 +0800
Subject: [PATCH] =?UTF-8?q?fix(monitor):=20=E7=BB=84=E5=A4=B4=E5=8F=96?=
=?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=8C=87=E6=A0=87=E6=97=B6=EF=BC=8C=E5=88=AB?=
=?UTF-8?q?=E8=A2=AB=E7=BB=84=E9=87=8C=E7=AC=AC=E4=B8=80=E6=9D=A1=E4=BD=9C?=
=?UTF-8?q?=E5=93=81=E5=B8=A6=E5=81=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
分组只按博主,而账号指标是挂在 (任务, 博主) 上的 —— 同一个博主被两个任务
监控时,组里可能只有一部分作品带指标。取第一条的话,「第一个任务还没采过」
就会让整组看起来没有指标。
---
webui/src/components/monitor/NotesTable.tsx | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/webui/src/components/monitor/NotesTable.tsx b/webui/src/components/monitor/NotesTable.tsx
index 3855c46..8f54892 100644
--- a/webui/src/components/monitor/NotesTable.tsx
+++ b/webui/src/components/monitor/NotesTable.tsx
@@ -268,8 +268,15 @@ export function NotesTable({ taskId, onlyNew }: NotesTableProps) {
{group.notes.length} 篇
- {/* 账号级指标对组里每条作品都一样,取第一条即可。 */}
-
+ {/* 账号级指标是按 (任务, 博主) 存的,而分组只按博主 —— 同一个博主
+ 被两个任务监控时,组里可能只有一部分作品带指标。优先挑带指标的那条,
+ 否则「第一个任务还没采过」会让整组看起来没有指标。 */}
+ note.creator_stats_at !== null) ??
+ group.notes[0]
+ }
+ />