|
|
@@ -130,13 +130,13 @@ export function fmtDuration(ms: number) {
|
|
|
// 构建时长字符串
|
|
|
let durationStr = '';
|
|
|
if (days > 0) {
|
|
|
- durationStr += `${days}天 `;
|
|
|
+ durationStr += `${days}天`;
|
|
|
}
|
|
|
if (hours > 0) {
|
|
|
- durationStr += `${hours}小时 `;
|
|
|
+ durationStr += `${hours}时`;
|
|
|
}
|
|
|
if (minutes > 0) {
|
|
|
- durationStr += `${minutes}分钟 `;
|
|
|
+ durationStr += `${minutes}分`;
|
|
|
}
|
|
|
if (seconds > 0 || !durationStr) { // 如果没有小时和分钟,至少显示秒
|
|
|
durationStr += `${seconds}秒`;
|