diff --git a/web/src/components/accounts/MonitoringAccountList.tsx b/web/src/components/accounts/MonitoringAccountList.tsx
index c0b5a8e..6d5810e 100644
--- a/web/src/components/accounts/MonitoringAccountList.tsx
+++ b/web/src/components/accounts/MonitoringAccountList.tsx
@@ -139,15 +139,16 @@ export default function MonitoringAccountList() {
),
},
{
- title: '账号数据',
- key: 'stats',
- render: (_, account) => (
-
- 粉丝 {formatCount(account.follower_count)}
- 关注 {formatCount(account.following_count)}
- 作品 {formatCount(account.work_count ?? account.aweme_count ?? null)}
-
- ),
+ title: '粉丝',
+ render: (_, account) => formatCount(account.follower_count),
+ },
+ {
+ title: '关注',
+ render: (_, account) => formatCount(account.following_count),
+ },
+ {
+ title: '作品',
+ render: (_, account) => formatCount(account.work_count ?? account.aweme_count ?? null),
},
{
title: '最近发布',
diff --git a/web/tests/monitoring-account-list.test.cjs b/web/tests/monitoring-account-list.test.cjs
index 39f1b0b..ad1882c 100644
--- a/web/tests/monitoring-account-list.test.cjs
+++ b/web/tests/monitoring-account-list.test.cjs
@@ -23,6 +23,17 @@ test('监控账号列表使用 Table,一行一个账号,保留详情入口
assert.doesNotMatch(code, / {
+ assert.doesNotMatch(code, /title: '账号数据'/);
+ for (const [title, value] of [
+ ['粉丝', 'account.follower_count'],
+ ['关注', 'account.following_count'],
+ ['作品', 'account.work_count ?? account.aweme_count ?? null'],
+ ]) {
+ assert.ok(code.includes(`title: '${title}',\n render: (_, account) => formatCount(${value}),`), `${title} 应为单独数值列`);
+ }
+});
+
test('列表不展示冗长的平台账号,保留画像统计及同步异常', () => {
assert.doesNotMatch(code, /row\.platform_account_key|account\.platform_account_key/);
for (const field of ['follower_count', 'following_count', 'work_count', 'latest_published_at', 'last_sync_at', 'sync_error']) {