diff --git a/src/pages/componentDevelopment/componentList/compAudit.tsx b/src/pages/componentDevelopment/componentList/compAudit.tsx index d3484b6..365f9e1 100644 --- a/src/pages/componentDevelopment/componentList/compAudit.tsx +++ b/src/pages/componentDevelopment/componentList/compAudit.tsx @@ -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; }