mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
修改函数逻辑
This commit is contained in:
@@ -440,6 +440,9 @@ export function formatSecondToHour(second) {
|
||||
second = Number(second);
|
||||
var h = second / 3600;
|
||||
h = h.toFixed(n);
|
||||
if(isNaN(h)){
|
||||
h = 0;
|
||||
}
|
||||
return h;
|
||||
}
|
||||
// 秒换成时分秒
|
||||
|
||||
Reference in New Issue
Block a user