mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-30 01:55:47 +08:00
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)
This commit is contained in:
parent
e4765ebe0c
commit
20f3f54714
@ -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…
x
Reference in New Issue
Block a user