pref(compAudit): 优化附件下载的前置判断,优化版本记录模态框中的table布局

master
钟良源 2 weeks ago
parent 4365dada34
commit 9976ccc050

@ -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;
}

Loading…
Cancel
Save