krashouk opened a new issue, #1895: URL: https://github.com/apache/rocketmq-dashboard/issues/1895
## 问题描述 Message 页面允许清空开始或结束 DatePicker,但搜索处理函数会直接调用 `timepickerBegin.valueOf()` 和 `timepickerEnd.valueOf()`。任一值为 `null` 时会抛出 TypeError,查询中断且没有可理解的提示。 ## 复现步骤 1. 打开 Message 查询页面。 2. 清空开始时间或结束时间。 3. 点击搜索。 4. 观察前端在 `null.valueOf()` 处抛异常。 ## 预期行为 调用 `valueOf` 前先验证两个日期均存在;缺失时阻止请求并显示本地化提示,完整但倒序的时间范围继续显示顺序错误。 ## 环境 - 分支:`master` - 基线:`770822bbc812bfd0c2a94aa0128ab6f59b50d076` - 前端:React 19 / Ant Design 5 ## 建议修复方向 抽取时间范围校验,覆盖空值、倒序和合法区间三种边界,并补齐中英文提示。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
