mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
日志和脚本增加文件大小展示,修改脚本管理列表排序
This commit is contained in:
@@ -46,6 +46,13 @@ export default (app: Router) => {
|
||||
config.scriptPath,
|
||||
config.scriptPath,
|
||||
blacklist,
|
||||
(a, b) => {
|
||||
if (a.type === b.type) {
|
||||
return a.title.localeCompare(b.title);
|
||||
} else {
|
||||
return a.type === 'directory' ? -1 : 1;
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
res.send({
|
||||
|
||||
Reference in New Issue
Block a user