feat(monitor): switch headers input to key-value rows
- AdvancedRequestConfig 把 headers textarea 换成行式:每行 name 输入 + value 输入 + 删除按钮,底部「+ 添加 Header」。直观区分名/值,不用再一行 "Key: Value" 自己拆。 - 校验下放到行级:name 含空格或冒号才报错,未填仅占位不报错(避免输入时频繁红字)。 - 外部 props 同值不回写,避免 commit 后行被重排。 - chore: 移除 CLAUDE.md 里 silentflower remote 行(不再追踪)。
This commit is contained in:
@@ -2242,7 +2242,11 @@ export default {
|
||||
sectionHint: '自定义请求头和请求体,用于突破上游的客户端识别限制(如仅允许 Claude Code 客户端)。',
|
||||
headers: '自定义请求头',
|
||||
headersPlaceholder: 'User-Agent: claude-cli/1.0.83 (external, cli)\nx-app: cli\nanthropic-beta: claude-code-20250219',
|
||||
headersHint: '每行一对 Key: Value;会与默认请求头合并,用户值优先。hop-by-hop 类 header(Host/Content-Length/...)会被忽略。',
|
||||
headerNamePlaceholder: 'Header 名',
|
||||
headerValuePlaceholder: 'Value',
|
||||
headerAddRow: '添加 Header',
|
||||
headerNameInvalid: 'Header 名不能包含空格或冒号:{name}',
|
||||
headersHint: '与默认请求头合并,用户值优先。hop-by-hop 类 header(Host/Content-Length/...)会被忽略。',
|
||||
headersParseError: '无法解析这一行:{line}',
|
||||
bodyMode: '请求体处理',
|
||||
bodyModeOff: '默认',
|
||||
|
||||
Reference in New Issue
Block a user