浏览代码

feat: Fixed the issue where the test database connection was successful but the prompt message showed that there was no error status #1739 (#2051)

### What problem does this PR solve?

feat: Fixed the issue where the test database connection was successful
but the prompt message showed that there was no error status #1739

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.10.0
balibabu 1年前
父节点
当前提交
20f3f54714
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/src/hooks/flow-hooks.ts

+ 1
- 1
web/src/hooks/flow-hooks.ts 查看文件

@@ -201,7 +201,7 @@ export const useTestDbConnect = () => {
mutationKey: ['testDbConnect'],
mutationFn: async (params: any) => {
const ret = await flowService.testDbConnect(params);
if (ret?.retcode === 0) {
if (ret?.data?.retcode === 0) {
message.success(ret?.data?.data);
} else {
message.error(ret?.data?.data);

正在加载...
取消
保存