mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 08:28:34 +00:00
fix(usage): 管理端错误请求页过滤与分列完善
- 错误请求标签补传 model/account_id/group_id 过滤(此前 loadAdminErrors 丢弃),admin handler 读取 model 查询参数走精确匹配 - 错误表格拆成 用户/API Key/账号 三独立列(上游行也显示用户),补 api_key_name/api_key_deleted, 已删除 key 显示红色「已删除」标记;i18n keyDeletedBadge 补入 errorLog 命名空间 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
QTom
co-authored by
Claude Opus 4.8
parent
cf12bc521b
commit
fe8952733a
@@ -907,6 +907,9 @@ export interface OpsErrorLog {
|
||||
user_id?: number | null
|
||||
user_email: string
|
||||
api_key_id?: number | null
|
||||
// 关联 api_key 名称(后端 LEFT JOIN api_keys;软删保留 name,故已删 key 仍有原名)。
|
||||
api_key_name?: string
|
||||
api_key_deleted?: boolean
|
||||
account_id?: number | null
|
||||
account_name: string
|
||||
group_id?: number | null
|
||||
@@ -1086,6 +1089,8 @@ export type OpsErrorListQueryParams = {
|
||||
account_id?: number | null
|
||||
user_id?: number
|
||||
api_key_id?: number
|
||||
// 模型过滤:后端以 COALESCE(requested_model, model) 精确匹配(admin 路径)。
|
||||
model?: string
|
||||
|
||||
phase?: string
|
||||
error_owner?: string
|
||||
|
||||
Reference in New Issue
Block a user