代码溯源百分比样式显示位置

This commit is contained in:
caishi 2023-10-16 15:24:46 +08:00
parent 7df41a7048
commit b1de96344e
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ function Data(props) {
: e.detect_status === "detecting" ?
<div className="running">
<span className="percentline" style={{ width: `${e.detect_process}%` }}></span>
<span className="percentNum" style={{ left: `${e.detect_process + 5}%` }}>{e.detect_process}%</span>
<span className="percentNum" style={{ left: `${parseInt(e.detect_process,0) + 5}%` }}>{e.detect_process}%</span>
</div>
: e.detect_status === "detected" ?
<span className="success">成功</span> : <div className="running">