From 7409174456bdbe022f46adf78c339bea4b00233b Mon Sep 17 00:00:00 2001 From: skynono Date: Sat, 20 Jun 2026 20:46:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(log):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=97=A5=E5=BF=97=E6=8C=89=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B(type=3D7)=E7=AD=9B=E9=80=89=E5=A4=B1?= =?UTF-8?q?=E6=95=88=20(#5620)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 路由 search 校验枚举 logTypeValues 漏了 '7'(登录), 选「登录」时 type=['7'] 校验失败被 .catch([]) 兜底成空数组, 最终请求丢掉 type 参数。补上 '7' 与 LOG_TYPE_ENUM.LOGIN 对齐。 --- web/default/src/routes/_authenticated/usage-logs/$section.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/default/src/routes/_authenticated/usage-logs/$section.tsx b/web/default/src/routes/_authenticated/usage-logs/$section.tsx index cf98f154..28a1a3b7 100644 --- a/web/default/src/routes/_authenticated/usage-logs/$section.tsx +++ b/web/default/src/routes/_authenticated/usage-logs/$section.tsx @@ -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) => {