mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
fix: 修复端点 header_rules 无法清空的问题
- updateEndpoint 接口的 header_rules 类型改为支持 null - rulesToHeaderRules 返回 null 而非 undefined 以正确清除规则 - 将 header 规则操作类型文案"设置"改为"覆写"
This commit is contained in:
@@ -46,7 +46,7 @@ export async function updateEndpoint(
|
||||
data: Partial<{
|
||||
base_url: string
|
||||
custom_path: string | null
|
||||
header_rules: HeaderRule[]
|
||||
header_rules: HeaderRule[] | null
|
||||
max_retries: number
|
||||
is_active: boolean
|
||||
config: Record<string, any>
|
||||
|
||||
Reference in New Issue
Block a user