From 2adfea8d8e3e78c9e7408472131158d42966e7db Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 18 Sep 2026 08:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=96=87=E4=BB=B6=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/public/index.html b/app/server/public/index.html index 9aabe6b..6eeadaf 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -2335,7 +2335,7 @@ // 规则:主体只渲染当前目录的直接子项,目录在上、文件在下;同级目录按名称排序,同级文件按时间倒序(新的在前)。 // filesCurDir 为当前浏览目录('' = 任务根);顶部面包屑(/ > a > b)点任意节点回跳,点目录行进一层;无折叠态。 - function fileTimeOf(f) { return f.ctime || f.mtime || 0; } + function fileTimeOf(f) { return f.mtime || f.ctime || 0; } function sortFilesByTime(arr) { arr.sort(function (a, b) { const d = fileTimeOf(b) - fileTimeOf(a); // 时间缺失的排最后,与原逻辑一致 @@ -2387,7 +2387,7 @@ ? '' : ''; const name = esc(String(f.filename).split('/').pop() || f.filename); - const ftime = fmtTime(f.ctime || f.mtime); + const ftime = fmtTime(f.mtime || f.ctime); const sel = isFileEffectivelySelected(f.filename); return '
' + '' +