fix: handle empty HTTP request timeout in profile editor

This commit is contained in:
wonfen
2026-07-13 01:31:44 +08:00
parent 7155047e02
commit eaf4fc2c17
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@
- 修复日志刷新时页面可能被强制滚动到底部的问题
- 修复全局扩展脚本中的通配符配置可能生成无效 YAML 的问题
- 修复代理组筛选后定位及滚动位置恢复异常的问题
- 修复编辑订阅配置时清空 HTTP 请求超时会报错的问题
<details>
<summary><strong> ✨ 新增功能 </strong></summary>
@@ -100,6 +100,8 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) {
const option = form.option ? { ...form.option } : undefined
if (option?.timeout_seconds) {
option.timeout_seconds = +option.timeout_seconds
} else if (option) {
option.timeout_seconds = undefined
}
if (option?.update_interval) {
option.update_interval = +option.update_interval