瀏覽代碼

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
No account linked to committer's email address
共有 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);

Loading…
取消
儲存