Skip to content

Commit aa1f13c

Browse files
committed
fix: .toFixed(2) the process of strokes in one character
1 parent 960652b commit aa1f13c

File tree

6 files changed

+1874
-3
lines changed

6 files changed

+1874
-3
lines changed

front-end/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ const App = () => {
465465
</div>
466466
<div>
467467
<Progress style={{margin: "10px"}} type="circle" status={ submitSuccess ? null : "active"} percent={
468-
strokeCompleted ? 100 : (((strokeIndex-1)/strokeList.length)*100)
468+
strokeCompleted ? 100 : (((strokeIndex-1)/strokeList.length)*100).toFixed(2)
469469
} width={80} />
470470
{ submitLoading ? (<Spin />) : null }
471471
</div>

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"pkg": "^5.1.0"
4+
}
5+
}

0 commit comments

Comments
 (0)