- | {item.value} |
- {item.room_id || "—"} |
+ {item.anchor_name || "—"} |
+ {item.room_id || "—"} |
+
+ {item.value}
+ |
{item.reason || "—"} |
{fmtTs(item.created_at)} |
diff --git a/frontend/src/app/blacklist/page.tsx b/frontend/src/app/blacklist/page.tsx
index 7c6f4a5..6713910 100644
--- a/frontend/src/app/blacklist/page.tsx
+++ b/frontend/src/app/blacklist/page.tsx
@@ -13,6 +13,7 @@ type Item = {
id: string;
value: string;
room_id?: string;
+ anchor_name?: string;
reason?: string;
created_at?: number;
};
@@ -67,9 +68,10 @@ export default function BlacklistPage() {
}
async function remove(item: Item) {
+ const label = item.anchor_name || item.value;
const ok = await confirm({
title: "移出黑名单",
- message: `确定移除「${item.value}」?相关房间将恢复可监控状态。`,
+ message: `确定移除「${label}」?相关房间将恢复可监控状态。`,
confirmLabel: "移除",
destructive: true,
});
@@ -131,11 +133,12 @@ export default function BlacklistPage() {
) : (
-
+
- | 内容 |
+ 直播间名称 |
房间号 |
+ 匹配内容 |
原因 |
时间 |
操作 |
@@ -144,10 +147,15 @@ export default function BlacklistPage() {
{items.map((item) => (
- | {item.value} |
- {item.room_id || "—"} |
+
+ {item.anchor_name || —}
+ |
+ {item.room_id || "—"} |
+
+ {item.value}
+ |
{item.reason || "—"} |
- {fmtTs(item.created_at)} |
+ {fmtTs(item.created_at)} |
| |