首页课程展示数据渲染

This commit is contained in:
禺狨
2023-03-24 14:13:37 +08:00
parent 95732983f7
commit 084a0652c6
2 changed files with 58 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ export function dateFormat(dateStr: string) {
}
export function studyTimeFormat(dateStr: number) {
var d = moment.duration(dateStr, "seconds");
var d = moment.duration(dateStr/1000, "seconds");
let value = [];
value.push(Math.floor(d.asDays()));
value.push(d.hours());