mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 16:09:18 +00:00
refactor: refactor dataSource manager
This commit is contained in:
parent
5ce37cf37d
commit
17fd701e3e
@ -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,
|
||||
},
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user