docs: IMPROVEMENTS.md 添加前端 Bug 修复记录 (9.1)
This commit is contained in:
@@ -269,6 +269,22 @@
|
||||
- 实现:配置 GitHub Actions 或 Gitea Actions
|
||||
- 流程:代码提交 → 测试 → 构建 → 部署
|
||||
|
||||
## 九、Bug 修复记录
|
||||
|
||||
### 9.1 前端输入问题
|
||||
- [x] **数字输入框无法输入小数点** ✅
|
||||
- 问题:用户在输入框输入 "1." 时,末尾小数点会丢失
|
||||
- 原因:`bindinput` 时直接用 `parseFloat()` 转换,`parseFloat("1.")` 返回 `1`
|
||||
- 修复:移除 `bindinput` 时的数值转换,改为仅在 `blur` 时验证和更新
|
||||
- 修改文件:`miniprogram/pkg-asd/asdmain/asdmain.ts`
|
||||
- 影响范围:
|
||||
- `onMeasuredWindSpeedInput` - 实测风速输入
|
||||
- `onPointWindSpeedInput` - 测点风速输入
|
||||
- `onPointHeightInput` - 测点高度输入
|
||||
- `onWindSpeedInput` - 风向风速数组输入
|
||||
- `onWindDirectionInput` - 风向数组输入
|
||||
- 完成时间:2026-04-15
|
||||
|
||||
## 八、技术债务
|
||||
|
||||
### 8.1 高优先级
|
||||
|
||||
Reference in New Issue
Block a user