feat: cap log fetch size and add limit query param

This commit is contained in:
hkfires
2025-11-24 20:53:37 +08:00
parent e3a2a34b70
commit d8c06c7f6c
3 changed files with 21 additions and 1 deletions

View File

@@ -53,6 +53,12 @@ export const OAUTH_MAX_POLL_DURATION_MS = 5 * 60 * 1000;
*/
export const MAX_LOG_LINES = 2000;
/**
* 日志接口获取数量上限
* 限制后端返回的日志行数,避免一次拉取过多数据
*/
export const LOG_FETCH_LIMIT = 2500;
/**
* 认证文件列表默认每页显示数量
*/