CN-1391 fix: 修复一系列bug

This commit is contained in:
chenjinsong
2023-10-22 18:29:34 +08:00
parent 7d34b8388c
commit 40d43acb6c
11 changed files with 269 additions and 145 deletions

View File

@@ -43,7 +43,7 @@ export function rTime (date) {
}
// 日期转换为时间戳
export function toTime (date) {
return new Date(date).getTime()
return new Date(parseFloat(date)).getTime()
}
// 时间格式转换
export function dateFormat (date, format = 'YYYY-MM-DD HH:mm:ss') {