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 '