Ver código fonte

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 ano atrás
pai
commit
20f3f54714
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      web/src/hooks/flow-hooks.ts

+ 1
- 1
web/src/hooks/flow-hooks.ts Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar