refactor: refactor dataSource manager

This commit is contained in:
katherinehhh 2024-01-25 22:17:40 +08:00
parent 5ce37cf37d
commit 17fd701e3e
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export const useTestConnectionAction = () => {
await form.submit();
try {
actionField.data.loading = true;
await api.resource('databaseConnections').testConnection({
await api.resource('dataSource').testConnection({
values: {
...form.values,
},

View File

@ -49,7 +49,7 @@ export class PluginDataSourceManagerClient extends Plugin {
const service = await this.app.apiClient.request<{
data: any;
}>({
resource: 'databaseConnections',
resource: 'dataSources',
action: 'list',
params: {
paginate: false,