diff --git a/apps/admin-web/src/components/ArticleDetailDrawer.vue b/apps/admin-web/src/components/ArticleDetailDrawer.vue index e6ca77e..9004d83 100644 --- a/apps/admin-web/src/components/ArticleDetailDrawer.vue +++ b/apps/admin-web/src/components/ArticleDetailDrawer.vue @@ -112,6 +112,12 @@ const publishRecordColumns = computed>(() => [ key: 'published_at', width: 168, }, + { + title: '错误信息', + dataIndex: 'error_message', + key: 'error_message', + width: 220, + }, { title: t('media.records.link'), dataIndex: 'external_article_url', @@ -249,6 +255,18 @@ function shouldShowClientManageHint(record: PublishRecord): boolean { ) } +function publishRecordError(record: PublishRecord): string { + return record.error_message?.trim() || '' +} + +function publishRecordErrorPreview(record: PublishRecord): string { + const error = publishRecordError(record).replace(/\s+/g, ' ') + if (error.length <= 52) { + return error + } + return `${error.slice(0, 44)}...${error.slice(-5)}` +} + async function copyPublishLink(record: PublishRecord): Promise { const target = resolvePublishLink(record) if (!target) { @@ -399,6 +417,14 @@ async function copyPublishLink(record: PublishRecord): Promise { +