Commit 7a33ca25 by zhanghaozhe

学习-我的课程学习记录时间格式修改

parent 434cb9ad
...@@ -37,10 +37,10 @@ function Record({ record: { seconds, lesson_name } }) { ...@@ -37,10 +37,10 @@ function Record({ record: { seconds, lesson_name } }) {
if (seconds) { if (seconds) {
let studyTime = getStudyTime(seconds) let studyTime = getStudyTime(seconds)
let hour = studyTime.hour let hour = studyTime.hour
? String(studyTime.hour).padStart(2, "0") + ":" ? String(studyTime.hour).padStart(2, "0") + ""
: "", : "",
min = studyTime.min ? String(studyTime.min).padStart(2, "0") + ":" : "", min = studyTime.min ? String(studyTime.min).padStart(2, "0") + "" : "",
sec = studyTime.sec ? String(studyTime.sec).padStart(2, "0") : "" sec = studyTime.sec ? String(studyTime.sec).padStart(2, "0") + "秒" : ""
result += hour + min + sec result += hour + min + sec
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment