大图片上传前询问并本地压缩

This commit is contained in:
2026-09-02 14:36:55 +08:00
parent 2843eb9496
commit 41adb96a81
5 changed files with 87 additions and 6 deletions
+2
View File
@@ -45,6 +45,8 @@ router.get('/status', wrap((req, res) => {
port: cfg.port,
auth_enabled: !!(cfg.auth && cfg.auth.users && cfg.auth.users.length),
running_sessions: engine.activeRuns(),
// 前端上传前的大图压缩参数(阈值/尺寸/质量),避免前端写死
upload: cfg.upload || {},
});
}));