Forráskód Böngészése

🔧 chore(config): 允许pnpm typecheck命令执行

- 在claude设置中添加Bash(pnpm typecheck:*)到允许的命令列表

🐛 fix(form): 修复咨询请求表单默认值问题

- 移除isGuest字段的默认值true,确保表单验证正确处理用户身份状态
yourname 3 hónapja
szülő
commit
6fe7facbe7

+ 2 - 1
.claude/settings.local.json

@@ -38,7 +38,8 @@
       "Bash(curl:*)",
       "Bash(pkill:*)",
       "Bash(lsof:*)",
-      "Bash(xargs kill:*)"
+      "Bash(xargs kill:*)",
+      "Bash(pnpm typecheck:*)"
     ],
     "deny": [],
     "ask": []

+ 1 - 1
src/client/components/ConsultationRequestForm.tsx

@@ -22,7 +22,7 @@ const ConsultationRequestFormSchema = z.object({
   projectDescription: z.string().min(10, '项目描述至少10个字符').max(2000),
   budgetRange: z.string().max(100).optional(),
   timeline: z.string().max(100).optional(),
-  isGuest: z.boolean().default(true)
+  isGuest: z.boolean()
 });
 
 type ConsultationRequestFormData = z.infer<typeof ConsultationRequestFormSchema>;