fix(log): 修复新前端日志按登录类型(type=7)筛选失效 (#5620)
路由 search 校验枚举 logTypeValues 漏了 '7'(登录), 选「登录」时 type=['7'] 校验失败被 .catch([]) 兜底成空数组, 最终请求丢掉 type 参数。补上 '7' 与 LOG_TYPE_ENUM.LOGIN 对齐。
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
USAGE_LOGS_DEFAULT_SECTION,
|
||||
} from '@/features/usage-logs/section-registry'
|
||||
|
||||
const logTypeValues = ['0', '1', '2', '3', '4', '5', '6'] as const
|
||||
const logTypeValues = ['0', '1', '2', '3', '4', '5', '6', '7'] as const
|
||||
const logTypeSearchSchema = z
|
||||
.preprocess(
|
||||
(value) => {
|
||||
|
||||
Reference in New Issue
Block a user