dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-13-修复订单备份管理Tab列宽异常.md
2026-10-28 11:14:17 +08:00

20 lines
810 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-08-13 修复订单备份管理Tab列宽异常
**旭东 → OpenClaw:**
> 订单备份管理里面为什么每一列的宽度都默认最小宽度了?
**OpenClaw 响应:**
已定位并修复。
**问题原因**:双 Tab 页面加载时,「订单备份管理」面板是隐藏状态(display:none),列宽初始化函数在隐藏状态下计算列宽时 `offsetWidth=0`,所有列都被锁定为最小宽度 60px。
**修复方案**:
1. 页面加载时只初始化可见的「订单管理」Tab 列宽
2. 切换到「订单备份管理」Tab 时,等面板显示后再重新按实际内容计算列宽
3. 两个 Tab 切换都会重新计算列宽,保证列宽正常
**验证**:JS 语法通过、线上检查 3 项断言通过、测试服务重启 HTTP 200。
**Git**:9f3ae22