krashouk opened a new issue, #1891: URL: https://github.com/apache/rocketmq-dashboard/issues/1891
## 问题描述 `ConsumerConfigItem` 的提交处理函数在 `finally` 中无条件调用 `onCancel()`。因此表单校验失败、请求异常或后端返回失败状态时,弹窗都会立即关闭,用户已填写的配置随之丢失。 ## 复现步骤 1. 打开新增或编辑 Consumer 配置弹窗。 2. 提交缺少必填字段的表单,或让 `createOrUpdateConsumer` 返回失败。 3. 观察错误提示出现后弹窗仍被关闭。 ## 预期行为 只有保存成功时才调用成功回调并关闭表单;校验和 API 失败时应保留弹窗与用户输入。 ## 环境 - 分支:`master` - 基线:`770822bbc812bfd0c2a94aa0128ab6f59b50d076` - 前端:React 19 / Ant Design 5 ## 建议修复方向 把关闭操作移动到成功分支,并覆盖校验失败、API 失败和成功三条提交路径。 -- 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]
