fix: 增加判断如果是生成中
This commit is contained in:
parent
663b0a3809
commit
1a4e96c4a1
|
@ -98,7 +98,7 @@ const BmDownload = () => {
|
|||
case 4:
|
||||
return <span>生成失败</span>
|
||||
default:
|
||||
return "-"
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -181,13 +181,19 @@ const BmDownload = () => {
|
|||
</a>
|
||||
)}
|
||||
|
||||
<a
|
||||
className="grid-link"
|
||||
style={{ paddingLeft: "2px", color: "red" }}
|
||||
onClick={() => deleteDownLoadTask(rowData.id)}
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
{rowData.status === 3 || rowData.status === 4 ? (
|
||||
<a
|
||||
className="grid-link"
|
||||
style={{ paddingLeft: "2px", color: "red" }}
|
||||
onClick={() => deleteDownLoadTask(rowData.id)}
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
) : (
|
||||
<a className="grid-link" style={{ paddingLeft: "2px", color: "#ccc" }}>
|
||||
删除
|
||||
</a>
|
||||
)}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue