feat: 转存记录记录文件大小, 详情展示使用账号+文件大小+时间格式

- quark/baidu 驱动 saveFromShare 返回 fileSize 总大小
- cloud.service.ts 写入 file_size 字段(非null时转字符串)
- 详情页新增文件大小展示(formatFileSize 自动格式化)
- 详情页时间改为 formatTime(yyyy-MM-dd HH:mm:ss)
- SaveRecords 时间格式: 05-15 → 2026-05-15
This commit is contained in:
2026-05-15 07:05:03 +08:00
parent 359e15a82d
commit 1c0c024b9a
3 changed files with 10 additions and 4 deletions

View File

@@ -150,7 +150,7 @@
</div>
<div class="detail-cell">
<span class="detail-label">时间</span>
<code class="detail-code">{{ row.created_at }}</code>
<code class="detail-code">{{ formatTime(row.created_at) }}</code>
</div>
</div>
<!-- Row 5: 错误信息整行 -->
@@ -333,7 +333,7 @@ function formatTime(t: string): string {
const d = new Date(ts)
if (isNaN(d.getTime())) return t
const pad = (n: number) => String(n).padStart(2, '0')
return `${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`
}
function formatDuration(ms: number): string {