格式化代码 var to let or const

This commit is contained in:
2025-05-28 20:29:24 +08:00
parent 8da20ab53e
commit 19d4c52c5e
15 changed files with 88 additions and 87 deletions

View File

@@ -1,12 +1,12 @@
import { config } from "../constants/config"
export function Utility_ConvertSecondToString(second: number) {
let last = second
export function Utility_ConvertSecondToString(seconds: number) {
let last = seconds
const hour = Math.floor(last / 3600)
last = last - hour * 3600
const minite = Math.floor(last / 60)
last = last - minite * 60
var second = Math.floor(last)
const second = Math.floor(last)
function format(value: number) {
return value >= 10 ? value.toString() : (`0${value}`)
}