@ -147,6 +147,7 @@ const CompAudit = () => {
title: '组件附件',
dataIndex: 'attachmentAddress',
width: 120,
fixed: 'right' as const,
render: (_, record: HistoryRecord) => {
if (!record.main.attachmentAddress) return '-';
return (
@ -293,7 +294,7 @@ const CompAudit = () => {
// 下载组件附件
const handleDownloadAttachments = (attachmentAddress: string) => {
if (!attachmentAddress) {
if (!attachmentAddress || attachmentAddress == '[]') {
Message.warning('暂无附件');
return;
}