Files
Nexus/docs/changelog/2026-06-08-settings-pool-size-string-payload.md
T
Nexus Agent ff143c286d fix(settings): 保存设置时将数值字段转为字符串避免 422
SettingUpdatePayload.value 要求 str,连接池与告警阈值为 number 输入。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 14:50:10 +08:00

24 lines
631 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 设置页连接池保存校验修复
**日期**2026-06-08
## 变更摘要
修复设置页保存「连接池大小 / 溢出连接数」时报 `value: Input should be a valid string` 的问题。
## 动机
`db_pool_size``db_max_overflow` 及告警阈值在表单中为 `number``saveSettings` 原样 PUT JSON 数字;后端 `SettingUpdatePayload.value` 类型为 `str`Pydantic 422。
## 涉及文件
- `frontend/src/pages/SettingsPage.vue` — 保存时 `String(value ?? '')`
## 迁移 / 重启
无。前端构建部署即可。
## 验证
设置页修改连接池 → 保存 → 应成功 toast,无 422。