fix: 修复会话录像时间1秒显示问题

This commit is contained in:
“huailei000” 2022-04-20 20:15:04 +08:00 committed by Jiangjie.Bai
parent 332cd2c073
commit c5495d9846

View File

@ -33,7 +33,7 @@ function readableSecond(offset) {
return hours.toFixed(1) + ' ' + getTimeUnits('h')
} else if (minutes > 1) {
return minutes.toFixed(1) + ' ' + getTimeUnits('m')
} else if (seconds > 1) {
} else if (seconds >= 0) {
return seconds.toFixed(1) + ' ' + getTimeUnits('s')
}
return ''