feat: 账号导入列表账号名称按监控账号 ID 关联跳转竞品作者详情
douyin-release-gate / verify (push) Failing after 2m59s

This commit is contained in:
2026-09-23 17:59:05 +08:00
parent c8c460da82
commit 8455ccc5aa
+16 -7
View File
@@ -29,6 +29,7 @@ interface Job {
failure_reason?: string;
created_at?: string;
author_name?: string;
competitor_id?: string;
}
interface FormValues {
@@ -119,14 +120,22 @@ export default function Page() {
{
title: '账号名称',
dataIndex: 'author_name',
render: (value?: string, job?: Job) =>
value ? (
<Typography.Text strong>{value}</Typography.Text>
render: (value?: string, job?: Job) => {
if (!value) {
return (
<Typography.Text type="secondary" style={{ fontSize: 12 }}>
{job?.status === 'failed' ? '解析失败' : '解析中'}
</Typography.Text>
);
}
// 名称来自 competitor_id 关联的监控账号(creator_competitor),点击跳转竞品作者详情。
const inner = <Typography.Text strong>{value}</Typography.Text>;
return job?.competitor_id ? (
<Typography.Link href={`/creator/competitors/${job.competitor_id}`}>{inner}</Typography.Link>
) : (
<Typography.Text type="secondary" style={{ fontSize: 12 }}>
{job?.status === 'failed' ? '解析失败' : '解析中'}
</Typography.Text>
),
inner
);
},
},
{
title: '分享链接',