fix: 增加判断如果是生成中

This commit is contained in:
zhangds 2024-04-28 11:16:14 +08:00
parent 663b0a3809
commit 1a4e96c4a1
1 changed files with 14 additions and 8 deletions

View File

@ -98,7 +98,7 @@ const BmDownload = () => {
case 4: case 4:
return <span>生成失败</span> return <span>生成失败</span>
default: default:
return "-" return 0
} }
} }
@ -181,13 +181,19 @@ const BmDownload = () => {
</a> </a>
)} )}
<a {rowData.status === 3 || rowData.status === 4 ? (
className="grid-link" <a
style={{ paddingLeft: "2px", color: "red" }} className="grid-link"
onClick={() => deleteDownLoadTask(rowData.id)} style={{ paddingLeft: "2px", color: "red" }}
> onClick={() => deleteDownLoadTask(rowData.id)}
删除 >
</a> 删除
</a>
) : (
<a className="grid-link" style={{ paddingLeft: "2px", color: "#ccc" }}>
删除
</a>
)}
</span> </span>
) )
} }