Commit 74091744 by skynono Committed by GitHub

fix(log): 修复新前端日志按登录类型(type=7)筛选失效 (#5620)

路由 search 校验枚举 logTypeValues 漏了 '7'(登录),
选「登录」时 type=['7'] 校验失败被 .catch([]) 兜底成空数组,
最终请求丢掉 type 参数。补上 '7' 与 LOG_TYPE_ENUM.LOGIN 对齐。
parent a68041f7
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment